Thread: Hot Linking
View Single Post
Old 11-27-2004, 02:47 PM  
SinSational
Confirmed User
 
Join Date: Oct 2004
Location: Boston, MA
Posts: 1,723
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?216.xxx.xx.xx(/)?.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?mydomain.com(/)?.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?myotherdomain.com(/)?.*$ [NC]
RewriteRule .*\.(gif|jpg|jpeg|bmp)$ http://www.mydomain.com [R,NC]

the rewritecond allows you to specify what domains can link the images
the rewriterule redirects them.

the hahaha123 are supposed to be brackets

http://www.htmlbasix.com/disablehotlinking.shtml
__________________

ICQ# 273099174 - monthly specials - 2 Month Free Credit on All Plans - 100% Referrals - chris@ for details
Virtual from $14.95/month, Dedicated from $149.95/month
Dual-Core Xeon > 1000GB @ $149.95 | 1500GB @ $169.95 | 10Mbps @ $269.95

Last edited by SinSational; 11-27-2004 at 02:48 PM..
SinSational is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote