View Single Post
Old 07-14-2001, 12:36 PM  
kush
Confirmed User
 
Join Date: Feb 2001
Posts: 3,382
.htaccess to allow hotlinking from only select domains

Does anybody know how to get this set up:
I want to be adult to hotlink pictures from certain select domains while preventing all other domains from hotlinking me. And I'm not sure how to do this...
Can someone offer some .htaccess help? I've search the boards but can't find a post relatd to this (though I think there was one once...)

Here's what my .htaccess currently looks like that doesn't allow ANY domain besides the one it's on to hotlink:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://www.beufords.com [NC]
RewriteCond %{HTTP_REFERER} !^http://beufords.com [NC]
RewriteRule \.jpg$ / [F,L]
RewriteCond %{HTTP_REFERER} !^http://www.beufords.com [NC]
RewriteCond %{HTTP_REFERER} !^http://beufords.com [NC]
RewriteRule \.gif$ / [F,L]

Thanks.

------------------
<A HREF="http://www.dailysteam.com/webmasters.html" TARGET=_blank>
My Webmaster's Page</A>
General Webmaster Info, seen from my point of view ;)<A HREF="http://www.dailysteam.com/sponsors.html" TARGET=_blank>
Sponsors List Page</A>
Organized, honest listing of sponsors and my comments on them
kush is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote