PDA

View Full Version : another hotlinking question... i know, i know


erock
8-6-03, 06:34 PM
Ok, so I think I have everything set up with the whole image hotlinking deal... But here's my question:

If I right-click on an image to view it by itself (or go to properties, etc...), I get a "Forbidden
You don't have permission to access /images/picname.jpg on this server." message.

Now, I'm not able to hotlink any images, but I was just wondering if that error message was supposed to come up or if I something wrong. Here's the image- http://www.bloatedgoatrecords.com/images/back.jpg. If I click on that link above, it will show up, but if I refresh it, I get the error page.

Thanks.

stevel
8-6-03, 08:42 PM
Your anti-hotlinking change is blocking everything. The only reason you can see the image at all is that it's still in your browser cache.

You'll have to figure out what you did wrong - if you need help, post the .htaccess here and someone will take a look.

I dislike using .htaccess in this way - it is too error-prone and blocks legitimate users of the site.

erock
8-7-03, 03:05 PM
This is what I have:

RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://www.bloatedgoatrecords.com [NC]
RewriteCond %{HTTP_REFERER} !^http://bloatedgoatrecords.com [NC]
RewriteRule [^/]+.(gif|jpg)$ - [F]

Thanks

erock
8-9-03, 09:52 AM
75 views?

stevel
8-9-03, 10:32 AM
I have no clue - your .htaccess looks ok to me. Look in your logs to find a request for the image - what does it show as the referrer?

I note that when I go to your main web page, the image doesn't show from there either.

erock
8-9-03, 05:09 PM
Originally posted by stevel
I note that when I go to your main web page, the image doesn't show from there either.

Weird. It shows up for everyone else. Thanks for the help anyways. I'll figure something out.

stevel
8-9-03, 09:24 PM
It probably doesn't show for me because I run Norton Internet Security which blocks sending the referrer.