Hey, is there anyone that can help me fix up the code for hotlink protection for swf files? I'm currently using this in my .htaccess but it doesn't seem to protect SWF files, only images. RewriteEngine On RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://(mysite).com [NC] RewriteCond %{HTTP_REFERER} !^http://www.(mysite).com [NC] RewriteRule .*.(swf|jpg|gif|png)$ - [NC,F] I'm a complete beginner with this kind of stuff, so sorry if this is posted in the wrong section Or, if anyone could tell me another way besides using .htaccess, that would be appreciated
Try this one RewriteEngine on RewriteCond %{HTTP_REFERER} . RewriteCond %{HTTP_REFERER} !mydomain\.co\.uk$ RewriteRule \.(swf)$ - [F]