Greenguy's Board

Greenguy's Board (http://www.greenguysboard.com/board/index.php)
-   Newbie Questions (http://www.greenguysboard.com/board/forumdisplay.php?f=5)
-   -   Hot link problem (http://www.greenguysboard.com/board/showthread.php?t=20080)

Licker4U 2005-05-26 05:07 PM

Hot link problem
 
I found several web sites hotlinking some of my images. I've been given several different codes to put in .htaccess but so far nothing has worked. I need a code that will stop ALL hotlinkers but let me call for images from one of my domains to the other. Can anyone help?

Thanks!

cd34 2005-05-26 05:16 PM

http://www.greenguysboard.com/board/...em#faq_hotlink

Code:

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-]+\.)*yourdomain\.com(:[0-9]+)?(/.*)?$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(.*@)?([a-z0-9-]+\.)*yourotherdomain\.com(:[0-9]+)?(/.*)?$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(.*@)?1\.2\.3\.4(:[0-9]+)?(/.*)?$
RewriteRule .*\.(asf|mpg|mpeg|wmv|avi|rm|gif|jpeg|jpg|zip)$ - [NC,F,L]


Licker4U 2005-05-26 05:21 PM

Thanks, I'll give it a try.

Licker4U 2005-05-26 05:37 PM

That didn't work. I still have images that are being hot linked. The very first two images of black women on this site:
http://www.whatboyswant.com/forum_read/1072455/24/

are being hot linked from my domain, fuckpage.com. I have .htaccess in the root directory at my server. There is also a .htaccess in a folder called "private". I think the .htaccess should go in the root directory.

cd34 2005-05-26 05:47 PM

You might have them cached -- they don't show up for me.

Licker4U 2005-05-26 05:50 PM

That's great if they don't show up. I went into my comtrol panel and deleted cookies, temporary internet files and cleared out history. I guess there's a cache somewhere that I don't know about. What did you get at that site, a red X in a box?

cd34 2005-05-26 06:06 PM

if your browser is not sending a referrer, due to some privacy software or whatever, it will still show the image.

You can comment out that first line:

#RewriteCond %{HTTP_REFERER} !^$ [NC]

and it will block empty referrers. That could block legit surfers that are running privacy software, but, there's always the possibility they won't accept the cookie and you wouldn't get the sale anyhow.


All times are GMT -4. The time now is 12:49 AM.

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