Boat Drinks  

Go Back   Boat Drinks > General > Computer and Consoles

Reply
 
Thread Tools Display Modes
Old 19-10-2007, 09:10   #1
Wossi
Absinthe
 
Wossi's Avatar
 
Join Date: Sep 2007
Location: In the middle
Posts: 1,385
Default 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]
Is this correct as an example? Also I assume I would just copy the third line for each site I visit?
Wossi is offline   Reply With Quote
Old 19-10-2007, 10:02   #2
Daz
The Stig
 
Daz's Avatar
 
Join Date: Jun 2006
Location: Swad!
Posts: 10,713
Default

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
Daz is offline   Reply With Quote
Old 19-10-2007, 10:26   #3
Wossi
Absinthe
 
Wossi's Avatar
 
Join Date: Sep 2007
Location: In the middle
Posts: 1,385
Default

Cheers Daz, finally got it sorted. I hope
Wossi is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 21:58.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.