Quote:
Originally posted by arial
Add this to your .htaccess (remove the spaces after the < )
SetEnvIfNoCase Referer "^http://site.com/" locally_linked=1
SetEnvIfNoCase Referer "^http://www.site.com/" locally_linked=1
SetEnvIfNoCase Referer "^$" locally_linked=1
< FilesMatch "\.(gif|png|jpe?g|mpg|mpeg|avi|wmv)$">
Order Allow,Deny
Allow from env=locally_linked
< /FilesMatch>
|
Ok I tried this out and it doesn't do quite what I thought it would do. I thought it might block access UNLESS the viewer is actually clicking through your gallery page. A surfer can still cut and paste the direct URL to the movie off of a BBS page.
What you want is to make sure that the surfer is seeing your page, and I guess that means using the cookie method.
I would buy a script that:
1) will only show the movie if the surfer is clicking through my gallery page.
2) can block access to the page itself if referred by a hostile (BBS) page.
3) can block based on IP range.