Greenguy's Board WebcamWiz CRAZY $5,000 Reward Bonuses


Go Back   Greenguy's Board > General Business Knowledge
Register FAQ Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2005-01-13, 09:08 AM   #1
neticule
A boy without mischief is like a bowling ball without a liquid center
 
neticule's Avatar
 
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!
neticule is offline   Reply With Quote
Old 2005-01-13, 09:11 AM   #2
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
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
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Old 2005-01-13, 09:18 AM   #3
neticule
A boy without mischief is like a bowling ball without a liquid center
 
neticule's Avatar
 
Join Date: Jan 2004
Posts: 437
thanks

thank you Cleo! much appreciated!
__________________
Mom, I'm done! Come wipe!
neticule is offline   Reply With Quote
Old 2005-01-14, 02:29 PM   #4
lassiter
I'm normally not a praying man, but if you're up there, please save me Superman!
 
lassiter's Avatar
 
Join Date: Aug 2003
Location: Austin, TX
Posts: 473
Send a message via ICQ to lassiter Send a message via Yahoo to lassiter
Quote:
Originally posted by Cleo
Put a htaccess file in the folder that you want to allow hotlinking from.

Put this in the htaccess file.

RewriteEngine off
Will that really counteract a "no hotlink" .htaccess in a higher-level directory? I was told (and perhaps erroneously) that an .htaccess script would affect the directory it was placed in and each subdirectory within that directory, regardless of what the subdirectory .htaccess file said. So I took that as a given fact, and I've never really experimented to see.
lassiter is offline   Reply With Quote
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
Old 2005-01-14, 09:35 PM   #6
lassiter
I'm normally not a praying man, but if you're up there, please save me Superman!
 
lassiter's Avatar
 
Join Date: Aug 2003
Location: Austin, TX
Posts: 473
Send a message via ICQ to lassiter Send a message via Yahoo to lassiter
Quote:
Originally posted by chilihost
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.
Thanks for clarifying that, Luke.

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.
lassiter is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:34 AM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc