[Solved]: .htaccess hotlinking file not working [Solved]: .htaccess hotlinking file not working
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

[Solved]: .htaccess hotlinking file not working

Started by dijares, June 05, 2008, 02:58:53 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

dijares

Hi there,

I have an older version of coppermine (and, yes, I know I should upgrade, but just give me a few hours/days to do it, and I will - if ever I have the time), and I decided to use the .htaccess file to block people from hotlinking my images, as I'm really starting to go over bandwidth.

I've loaded it up to my albums folder, spoken with my server people, and they said the file is there, and I'm allowed to do it, and they have all the right type of servers, but it isn't working.  Here's my code:

SetEnvIfNoCase Referer "^http://www.harrypotterspage.com/" locally_linked=1
SetEnvIfNoCase Referer "^http://harrypotterspage.com/" locally_linked=1
SetEnvIf Referer "^$" locally_linked=1
<FilesMatch "\.(gif|png|jpe?g)$">
  Order Allow,Deny
  Allow from env=locally_linked
</FilesMatch>


I hotlinked a photo on my myspace account, and it worked (while viewing with firefox - didn't try EI), so this is not working for some reason.  am I missing something?

Honestly, I went 35G over bandwidth this month and would really not like it to happen again.

Also, another question...

Once I start this does it begin working on all currently hotlinked files? Or ones that people start trying to hotlink after I've placed it up?

Thanks for your help!  :)
Life is like a bowl of chocolates
~~they begin to melt and make a mess
~~then you put them in the frig
~~and realize that they're just as good
~~~although slightly distorted

Nibbler

Post links so we have something to test. Also, make sure you clear your cache when testing.

dijares

Sorry, here's my gallery:

http://www.harrypotterspage.com/images/photogallery/index.php

How to I clear my cache with coppermine?  I have an older version and don't see where I can that within the admin area, unless I do this somewhere else.  Thanks!
Life is like a bowl of chocolates
~~they begin to melt and make a mess
~~then you put them in the frig
~~and realize that they're just as good
~~~although slightly distorted

dijares

sorry - dang - can't edit...

Did you mean my cache in Firefox?  lol - okay - sorry I have a news posting system that has a clear cache feature for the program it self...
Life is like a bowl of chocolates
~~they begin to melt and make a mess
~~then you put them in the frig
~~and realize that they're just as good
~~~although slightly distorted

dijares

Hey,

Sorry for the triple post - can't figure out how to edit...

Anyhow, cleared my cache, but it still wasn't working.  So, looked at it on IE, and it worked there.

So, ended up having to clear my cache like 3 times and restart FF 3 times, and it finally worked!  Yes!

So, my other question is, will it now worked on all previously hotlinked photos?  (please let it be so - y'all would save me major money - if so)

Thanks!
Life is like a bowl of chocolates
~~they begin to melt and make a mess
~~then you put them in the frig
~~and realize that they're just as good
~~~although slightly distorted