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: Image hotlink protection  (Read 4315 times)

0 Members and 1 Guest are viewing this topic.

ibroughton

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Image hotlink protection
« on: June 04, 2005, 02:07:39 pm »

I've added the image hotlink protection as described in the FAQ and this works great. My hosting company doesn't allow the MOD_REWRITE rule in .htaccess so this is a great solution. However, I would like an image to be displayed (Please don't steal my graphics type thing). how would this be added?
Logged

ibroughton

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Image hotlink protection
« Reply #1 on: June 04, 2005, 08:03:20 pm »

I take it back, it isn't working and a lot of images are displaying as broken links. Any ideas?
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Image hotlink protection
« Reply #2 on: June 04, 2005, 08:14:52 pm »

Link, please.
Logged

ibroughton

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Image hotlink protection
« Reply #3 on: June 05, 2005, 03:31:12 pm »

That might help!

Here it is http://photos.iainbroughton.com/index.php
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Image hotlink protection
« Reply #4 on: June 05, 2005, 03:43:50 pm »

I got 403 access denied when I tried to view an image directly so the .htaccess likely is incorrect. Please post the code pertaining to hotlink protection.
Logged

ibroughton

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Image hotlink protection
« Reply #5 on: June 05, 2005, 07:43:12 pm »

It is set to

redirect /index.htm /index.php
SetEnvIfNoCase Referer "^http://photos.iainbroughton.com/" locally_linked=1
SetEnvIfNoCase Referer "^http://photos.iainbroughton.com/" locally_linked=1
SetEnvIf Referer "^$" locally_linked=1
<FilesMatch "\.(gif|png|jpe?g)$">
  Order Allow,Deny
  Allow from env=locally_linked
</FilesMatch>
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 19 queries.