Wossi
19-10-2007, 09:10
I'm trying to create a .htaccess file to only allow certain sites to use my images from my site. I think it goes something like this:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?boat-drinks.co.uk/.*$ [NC]
RewriteRule \.(gif|jpg|png)$ http://www.somesite.com/nasty.gif [R,L]
Is this correct as an example? Also I assume I would just copy the third line for each site I visit?
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?boat-drinks.co.uk/.*$ [NC]
RewriteRule \.(gif|jpg|png)$ http://www.somesite.com/nasty.gif [R,L]
Is this correct as an example? Also I assume I would just copy the third line for each site I visit?