View Single Post
Old 04-03-2005, 01:52 PM  
mikeyddddd
Viva la vulva!
 
mikeyddddd's Avatar
 
Join Date: Mar 2003
Location: you can't please everyone, so you got to please yourself
Posts: 16,557
Quote:
Originally Posted by Zester
I usally use the following to prevent image hotlinking from my entire site:

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?mydomain.com(/)?.*$ [NC]
RewriteRule .*\.(gif|jpg|jpeg|bmp)$ - [F,NC]

how to modify the above if I want to allow image hotlinking for a certain folder, lets say:
mydomain.com/hotimages/
Only put it where you want it:
mydomain.com/hotimages/

RewriteCond %{HTTP_REFERER} !^$
lets someone key in the URL
mikeyddddd is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote