Remoting: Restrict Gateway Access

Quick question: what would be the best way to restrict access to my AMFPHP gateway so that only my SWF can connect?

Cheers,
ghjr