Image hotlink protection Image hotlink protection
 

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

Image hotlink protection

Started by ibroughton, June 04, 2005, 02:07:39 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ibroughton

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?

ibroughton

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

Tranz


ibroughton


Tranz

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.

ibroughton

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>