Advanced search  

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]

Pages: [1]   Go Down

Author Topic: [Solved]: .htaccess hotlinking file not working  (Read 3162 times)

0 Members and 1 Guest are viewing this topic.

dijares

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
    • Harry Potter's Page
[Solved]: .htaccess hotlinking file not working
« on: June 05, 2008, 02:58:53 pm »

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:

Code: [Select]
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!  :)
« Last Edit: June 05, 2008, 04:45:49 pm by Nibbler »
Logged
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

  • Guest
Re: .htaccess hotlinking file not working
« Reply #1 on: June 05, 2008, 03:02:15 pm »

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

dijares

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
    • Harry Potter's Page
Re: .htaccess hotlinking file not working
« Reply #2 on: June 05, 2008, 03:21:03 pm »

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!
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
    • Harry Potter's Page
Re: .htaccess hotlinking file not working
« Reply #3 on: June 05, 2008, 03:24:09 pm »

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...
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
    • Harry Potter's Page
Re: .htaccess hotlinking file not working
« Reply #4 on: June 05, 2008, 04:06:32 pm »

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!
Logged
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

  • Guest
Re: .htaccess hotlinking file not working
« Reply #5 on: June 05, 2008, 04:45:34 pm »

Yes.
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 20 queries.