View Single Post
Old 10-03-2012, 02:15 AM   PM User | #5
durangod
Senior Coder

 
Join Date: Nov 2010
Posts: 1,177
Thanks: 214
Thanked 31 Times in 30 Posts
durangod is on a distinguished road
well it didnt work and not sure why.

here is what i have, the problem all images from all the sites themselves get blocked including the index page and even this one gets blocked

Code:
http://www.site3.com/styles/ca_black/imageset/logo.jpg

i copied and pasted this in each of the domains htaccess files.



Code:

#block images by direct url all sites listed
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://site1.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://site1.com$      [NC]
RewriteCond %{HTTP_REFERER} !^http://site1.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.site1.com$      [NC]
#
RewriteCond %{HTTP_REFERER} !^http://site2.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://site2.com$      [NC]
RewriteCond %{HTTP_REFERER} !^http://site2.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.site2.com$      [NC]
#
RewriteCond %{HTTP_REFERER} !^http://site3.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://site3.com$      [NC]
RewriteCond %{HTTP_REFERER} !^http://site3.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.site3.com$      [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp|wmv)$ - [F,NC]
#end block
UPDATE i tried using F,NC,L and same result. Maybe i need to use AND or the OR to combine them.

Last edited by durangod; 10-03-2012 at 03:51 AM..
durangod is offline   Reply With Quote