How do I prevent my swf files being hotlinked, downloaded etc.
Posted
by undefined
on Server Fault
See other posts from Server Fault
or by undefined
Published on 2010-05-24T14:25:30Z
Indexed on
2010/05/24
14:32 UTC
Read the original article
Hit count: 194
I have swf files that are embedded in a PHP page using SWFObject. These swf files are in the same directory as my PHP files. for example www.myurl.com/index.php embeds www.myurl.com/flashfile.swf, index.php and flashfile.swf are in the same directory. However I want to prevent people from being able to type in www.myurl.com/flashfile.swf and viewing the swf. I want the browser to deny access to this file unless it has been embedded by the PHP file. Should I move my swfs to another folder and protect this folder somehow - is this with the .htaccess file?
I am running Apache on a linux machine. While my main concern is for swf files I would like to protect graphics used on the site too.
all help appreciated thanks
© Server Fault or respective owner