|
![]() |
#1 |
Mean people suck, nice people swallow, are you mean or nice?
|
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! |
![]() |
![]() |
![]() |
#2 |
a.k.a. Sparky
Join Date: Sep 2004
Location: West Palm Beach, FL, USA
Posts: 2,396
|
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]
__________________
SnapReplay.com a different way to share photos - iPhone & Android |
![]() |
![]() |
![]() |
#3 |
Mean people suck, nice people swallow, are you mean or nice?
|
Thanks, I'll give it a try.
|
![]() |
![]() |
![]() |
#4 |
Mean people suck, nice people swallow, are you mean or nice?
|
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. |
![]() |
![]() |
![]() |
#5 |
a.k.a. Sparky
Join Date: Sep 2004
Location: West Palm Beach, FL, USA
Posts: 2,396
|
You might have them cached -- they don't show up for me.
__________________
SnapReplay.com a different way to share photos - iPhone & Android |
![]() |
![]() |
![]() |
#6 |
Mean people suck, nice people swallow, are you mean or nice?
|
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?
|
![]() |
![]() |
![]() |
#7 |
a.k.a. Sparky
Join Date: Sep 2004
Location: West Palm Beach, FL, USA
Posts: 2,396
|
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.
__________________
SnapReplay.com a different way to share photos - iPhone & Android |
![]() |
![]() |
![]() |
|
|