Hi guys,

Prompted by a question from Jeff Mastropietro, I had a thought about
an easy way of stopping deep linking on .swf files and being certain
which page was referring to them/embedding them.

I've written a quick filter for Apache/PHP.

The idea is that the user makes a request to:

http://www.example.com/content/test.swf

Internally, a mod_rewrite request turns this into a request to a
proxy.php file, which then decides whether the client should have
access to the real file or not. If it should have access, it passes
the .swf straight back to the client.

The proxy can also add no-cache headers etc., which might be handy for
development. Or you can wedge in any code you like; tracking etc.

You can download it here (only 4K):
http://www.wildwinter.net/public/files/swfProxy.zip

Hope it's helpful to someone!

Cheers,
 Ian
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to