forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Installation & Setup => Topic started by: ibroughton on June 04, 2005, 02:07:39 pm

Title: Image hotlink protection
Post by: ibroughton 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?
Title: Re: Image hotlink protection
Post by: ibroughton 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?
Title: Re: Image hotlink protection
Post by: Tranz on June 04, 2005, 08:14:52 pm
Link, please.
Title: Re: Image hotlink protection
Post by: ibroughton on June 05, 2005, 03:31:12 pm
That might help!

Here it is http://photos.iainbroughton.com/index.php
Title: Re: Image hotlink protection
Post by: Tranz 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.
Title: Re: Image hotlink protection
Post by: ibroughton 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>