I'm trying to lock out all referers that are not from one of my sites. My .htaccess works great, and keeps people out. Only problem is that movies, plug ins, embedded files do not load, but come up as broken. Gifs, images, jpgs, and everything else seem to load fine. I'm totally stuck on this one. Any one know how to modify this so the embedded stuff loads too?
My current .htaccess looks like this
AuthUserFile /dev/null
AuthGroupFile /dev/null
Options FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://www.site1.com/ [NC]
RewriteCond %{HTTP_REFERER} !^http://site1.com/ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.site2.com/ [NC]
RewriteCond %{HTTP_REFERER} !^http://site2.com/ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.site3.com/ [NC]
RewriteCond %{HTTP_REFERER} !^http://site3.com/ [NC]
RewriteRule /* http://www.sendthemsomewhere.com/ [R,L]
My current .htaccess looks like this
AuthUserFile /dev/null
AuthGroupFile /dev/null
Options FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://www.site1.com/ [NC]
RewriteCond %{HTTP_REFERER} !^http://site1.com/ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.site2.com/ [NC]
RewriteCond %{HTTP_REFERER} !^http://site2.com/ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.site3.com/ [NC]
RewriteCond %{HTTP_REFERER} !^http://site3.com/ [NC]
RewriteRule /* http://www.sendthemsomewhere.com/ [R,L]

Comment