19-10-2007, 09:10 | #1 |
Absinthe
Join Date: Sep 2007
Location: In the middle
Posts: 1,385
|
Website people, help needed
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:
Code:
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] |
19-10-2007, 10:02 | #2 |
The Stig
Join Date: Jun 2006
Location: Swad!
Posts: 10,713
|
http://www.thesitewizard.com/archive...dththeft.shtml
Try that [edit]Or if you want to block a specific domain, these guys have a good example: http://www.bylandwaterandair.com/ext...gle_domain.php
__________________
apt-get moo |
19-10-2007, 10:26 | #3 |
Absinthe
Join Date: Sep 2007
Location: In the middle
Posts: 1,385
|
Cheers Daz, finally got it sorted. I hope
|
Thread Tools | |
Display Modes | |
|
|