View Single Post
Old 2005-01-14, 08:26 PM   #5
chilihost
Look at 'em. Watchin' my TV. Sittin on my couch. You better not be in my ass groove!
 
chilihost's Avatar
 
Join Date: Aug 2003
Posts: 465
htaccess files protect the directory and all subdirectories unless there is another htaccess file in the subdirectory, at which point that one takes over for its directory and its subdirectories.

an easy way to do this is to add in the domains you want hotlinkability from in your main htaccess file, ie, add in this type of line:

RewriteCond %{HTTP_REFERER} !^http://www.otherdomain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://otherdomain.com/.*$ [NC]

that will allow www.otherdomain.com and otherdomain.com to hotlink but still stop everyone else.

cheers,
Luke
__________________
HunkMoney+BritishBucks+LatinoBucks=50+ gay sites!
chilihost is offline   Reply With Quote