|
|
|
|
|
|
![]() |
#1 |
A boy without mischief is like a bowling ball without a liquid center
Join Date: Jan 2004
Posts: 437
|
Need help with hotlinking some pics
Im submitting my site to some toplists, and a few of them need a hotlinkable thumbnail from my site, i dont mind doing this at all except that i have my site set up to not allow image hotlinking.
All my thumbs are in one folder, is there any way to allow hotlinking for one folder and keep it disabled everywhere else?? please help me out, im gonna be twiddlin my thumbs until i get some help LOL!
__________________
Mom, I'm done! Come wipe! |
![]() |
![]() |
![]() |
#2 |
Subversive filth of the hedonistic decadent West
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
|
Put a htaccess file in the folder that you want to allow hotlinking from.
Put this in the htaccess file. RewriteEngine off |
![]() |
![]() |
![]() |
#3 |
A boy without mischief is like a bowling ball without a liquid center
Join Date: Jan 2004
Posts: 437
|
thanks
thank you Cleo! much appreciated!
__________________
Mom, I'm done! Come wipe! |
![]() |
![]() |
![]() |
#4 | |
I'm normally not a praying man, but if you're up there, please save me Superman!
|
Quote:
|
|
![]() |
![]() |
![]() |
#5 |
Look at 'em. Watchin' my TV. Sittin on my couch. You better not be in my ass groove!
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! |
![]() |
![]() |
![]() |
#6 | |
I'm normally not a praying man, but if you're up there, please save me Superman!
|
Quote:
![]() That in fact seems like the best way to handle the "thumbnail TGP" hotlinking requirement. Just adding additional domains to the original .htaccess file sounds good, but I've found that getting listed at certain TGPs often results in getting listed in as many as a dozen more, and it's usually impossible to know how far and to what domains a given submission may eventually be linked. So just creating a special subdirectory with its own .htaccess exception rule for the one or two hotlinkable thumbs in a gallery is probably the best way to go. |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | Rate This Thread |
|
|