View Single Post
Old 2006-06-16, 01:55 PM   #1
RedCherry
Of all the things I've lost, I miss my mind the most.
 
RedCherry's Avatar
 
Join Date: Apr 2004
Location: Middle of the Desert, Pahrump, NV
Posts: 3,187
Send a message via ICQ to RedCherry
Allowing a domain to hotlink you

Ok, just used the .htaccess in the FAQ section, and stopped some hotlinkers. But I have one domain that I use for picposts, so I want to allow some domains to hotlink me. How do I modify that .htacess to allow that?

this is what I have

ErrorDocument 404 http://www.mydomain.com/404.shtml
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://(.*@)?([a-z0-9-]+\.)*mydomain\.com(:[0-9]+)?(/.*)?$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(.*@)?1\.2\.3\.4(:[0-9]+)?(/.*)?$
RewriteRule .*\.(asf|mpg|mpeg|wmv|avi|rm|gif|jpeg|jpg|zip)$ - [NC,F,L]


how do I add in domains to that that are ok to hotlink?
RedCherry is offline   Reply With Quote