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

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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