Greenguy's Board


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

 
 
Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
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
 


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 10:46 AM.


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