Greenguy's Board


Go Back   Greenguy's Board > Programming & Scripting
Register FAQ Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2005-08-19, 03:14 AM   #26
ponyman
Nobody gets into heaven without a glowstick
 
ponyman's Avatar
 
Join Date: Jun 2004
Location: The Great Northwest
Posts: 422
Send a message via ICQ to ponyman
Ok guys, here's what I came up with (thanks cd34):
----------------------------------------------------------------------

RewriteEngine on
# leave this line in allow empty referrers, remove to disallow empty referrers
RewriteCond %{HTTP_REFERER} !^$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(.*@)?([a-z0-9-]+\.)*oldmanporn\.com(:[0-9]+)?(/.*)?$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(.*@)?1\.2\.3\.4(:[0-9]+)?(/.*)?$
RewriteRule ^.+\.(jpg|jpeg|gif)$ http://www.sexwitch.com/hotlink.jpg

AuthUserFile /dev/nul
AuthGroupFile /dev/nul
ErrorDocument 505 http://www.oldmenfucking.com/
ErrorDocument 404 http://www.oldmenfucking.com/

----------------------------------------------------------------
This replaces any hotlinked image with an image; hotlink.jpg

Here is a link to fusker with my domains and hotlinked images: http://fusker.lewww.com/index.php?query=oldmanporn.com

See for yourself how well it is working! Awesome.

One question I have, I left out this bit of code in my .htaccess

[NC,F,L]


is that important? Thanks for all your help! I've been getting hammered by fusker!
__________________
Dirty Old Men Sponsors - gay & straight
ponyman is offline   Reply With Quote
Old 2005-08-19, 03:49 AM   #27
Jel
I'm the only guy in the world who has to wake up to have a nightmare
 
Jel's Avatar
 
Join Date: Feb 2004
Location: London, United Kingdom
Posts: 1,895
Feel free to take that pic down btw
Jel is offline   Reply With Quote
Old 2005-08-19, 04:47 AM   #28
wankmaster
Just because I don't care doesn't mean I don't understand!
 
wankmaster's Avatar
 
Join Date: May 2005
Posts: 96
I removed my example of how to defeat .htaccess

( it also hotlinked the oldmanporn btw ).

I'm happy that .htaccess seems to stop Fusker for you all. ;-)
wankmaster is offline   Reply With Quote
Old 2005-08-19, 06:37 AM   #29
Jel
I'm the only guy in the world who has to wake up to have a nightmare
 
Jel's Avatar
 
Join Date: Feb 2004
Location: London, United Kingdom
Posts: 1,895
Thanks wankmaster,
Interesting stuff for sure
Jel is offline   Reply With Quote
Old 2005-08-19, 09:17 AM   #30
cd34
a.k.a. Sparky
 
cd34's Avatar
 
Join Date: Sep 2004
Location: West Palm Beach, FL, USA
Posts: 2,396
The 1\.2\.3\.4 is supposed to be replaced with your IP address.

Any referrer protection is basically useless in a number of conditions, and there are ways around it. However, the above does seem to handle about 99% of the cases.
__________________
SnapReplay.com a different way to share photos - iPhone & Android
cd34 is offline   Reply With Quote
Old 2005-08-19, 02:05 PM   #31
juggernaut
Registered User
 
juggernaut's Avatar
 
Join Date: Apr 2005
Location: Central Jersey! If I was rich and powerful I would dress as my avatar does.
Posts: 1,448
Send a message via Yahoo to juggernaut
Im using the one above, if someone gets around it then well to be honest here. I just hate fighting shit like this but Ill deal with it when I see it. Strange thing when i go to test my HL it does say that it works, but im looking to see if my current image is working also, anyway to figure out that? The testing sites jus give you an x if its working.
http://www.camhostlist.com/images/nohotlink.jpg
juggernaut is offline   Reply With Quote
Old 2005-08-19, 08:26 PM   #32
Brsicoe
Rock stars ... is there anything they don't know?
 
Join Date: Aug 2005
Location: Las Vegas, NV
Posts: 10
I don't use htaccess because it is a resource whore. You can use SetEnvIfNoCase instead. Plus you can get real fancy by using symbolic links and random strings for your content that get changed via a crontab every X number of minutes/hours.

Cheers |nursing
Brsicoe is offline   Reply With Quote
Old 2005-08-20, 06:04 AM   #33
ponyman
Nobody gets into heaven without a glowstick
 
ponyman's Avatar
 
Join Date: Jun 2004
Location: The Great Northwest
Posts: 422
Send a message via ICQ to ponyman
Quote:
Originally Posted by Jel
Feel free to take that pic down btw
I don't get it?
__________________
Dirty Old Men Sponsors - gay & straight
ponyman is offline   Reply With Quote
Old 2005-08-20, 06:27 AM   #34
wankmaster
Just because I don't care doesn't mean I don't understand!
 
wankmaster's Avatar
 
Join Date: May 2005
Posts: 96
For all practical purposes the issue is solved by .htaccess

I don't think it's worth worrying about. Just set up your .htaccess similar to above recommendations if you're bothered about hotlinking.

Apache docs advise against .htaccess for performance reasons, tho threads on other boards say that with a well loaded modern server this isn't likely to be the bottleneck.

Unless you have REAL perfomance issues, I think .htaccess is fine.
wankmaster is offline   Reply With Quote
Old 2005-08-20, 08:35 AM   #35
juggernaut
Registered User
 
juggernaut's Avatar
 
Join Date: Apr 2005
Location: Central Jersey! If I was rich and powerful I would dress as my avatar does.
Posts: 1,448
Send a message via Yahoo to juggernaut
Hum I wonder if this could be the reason for some slow page loads on my site. I just went over to a new host and have asked them to look at their server. First day I left the file they provided me with, then i went and placed this hotlink code. Cant say 100% for sure if it changed before or after, but it has been annoying the hell out of me.
juggernaut is offline   Reply With Quote
Old 2005-09-14, 01:28 PM   #36
Exploy
Aw, Dad, you've done a lot of great things, but you're a very old man, and old people are useless
 
Exploy's Avatar
 
Join Date: Jan 2005
Posts: 28
Quote:
Originally Posted by wankmaster
I just emailed them and asked them to stop. They emailed back and said "OK".
Then they stopped.

Don't know if this simple method still works tho.
I can't find their e-mail. 8(

Let me know it please.
__________________
Exploy is offline   Reply With Quote
Old 2005-09-14, 02:46 PM   #37
wankmaster
Just because I don't care doesn't mean I don't understand!
 
wankmaster's Avatar
 
Join Date: May 2005
Posts: 96
Hi,

This was last year I mailed them, and I don't remember if maybe it was just filling in a contact form on the website.

Sorry not to be more helpful than that.
wankmaster 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 02:11 AM.


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