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-01-13, 04:21 AM   #1
Fonz
Former pr0n slinger.
 
Fonz's Avatar
 
Join Date: Aug 2003
Location: Antwerp, Belgium
Posts: 7,932
htaccess hotlink question

I have this htaccess code that should keep my images from getting hotlinked. The problem is that it works if the url doesn't have "www" in it but when the url does have www in it the picture shows normal.

This is the code.

--------------------------

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?extremelyhotbabes.com(/)?.*$ [NC]
RewriteRule .*\.(gif|jpg|jpeg|bmp)$ http://www.ars4real.com/re.php?s=BTM...otlink&cen=&c= [R,NC]

---------------------------

So when I link to this url: http://extremelyhotbabes.com/free/bo...ggs/pics/2.jpg
I get redirected.
But when I link to this url I still get the picture: http://www.extremelyhotbabes.com/fre...ggs/pics/2.jpg

Anyone?

EDIT: Strange, seems to work now... must have been a cache thing...
__________________
See how I abuse little trees on my Shumi no Bonsai Blog

Last edited by Fonz; 2005-01-13 at 04:23 AM..
Fonz is offline   Reply With Quote
Old 2005-01-13, 05:17 AM   #2
kaktusan
Shut up brain, or I'll stab you with a Q-tip!
 
kaktusan's Avatar
 
Join Date: May 2004
Location: Bulgaria
Posts: 113
Send a message via ICQ to kaktusan Send a message via AIM to kaktusan
Re: htaccess hotlink question

I am using a similar script, and it must work either ways with www and without. You sure it is not working?
__________________
kaktusan is offline   Reply With Quote
Old 2005-01-13, 09:32 AM   #3
Useless
Certified Nice Person
 
Useless's Avatar
 
Join Date: Oct 2003
Location: Dirty Undies, NY
Posts: 11,268
Send a message via ICQ to Useless
Re: htaccess hotlink question

Quote:
Originally posted by Fonz

EDIT: Strange, seems to work now... must have been a cache thing...
I would have said alcohol consumption, but it could be your cache too.
__________________
Click here to purchase a bridge I'm selling.
Useless is offline   Reply With Quote
Old 2005-01-13, 09:36 AM   #4
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
If you use wildcards in your htaccess then all someone has to do to hotlink you is put the images in a folder named after your domain.

See my notes page for how to do it without wildcards.
http://www.cleoslinks.com/adult-link...aster-help.php
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Old 2005-01-13, 11:00 AM   #5
Fonz
Former pr0n slinger.
 
Fonz's Avatar
 
Join Date: Aug 2003
Location: Antwerp, Belgium
Posts: 7,932
Thanx for the link Cleo

UW, since I was sick yesterday I didn't drink on a wednesday for the first time in 7 years or so

... I had this hungarian site hotlinking one of my freesite's pictures. I'm sending their hits to a sponsor now, already 23k hits in 7 hours.
__________________
See how I abuse little trees on my Shumi no Bonsai Blog
Fonz 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 05:41 PM.


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