I like to protect the photos again using the direct link from outside of piwigo or without login.
This should possibe by htaccess, rewriteRule and some changes to i.php?
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule (.*) /i.php?pwg_uri=/file_proxy/$1 [L]
</IfModule>
<IfModule !mod_rewrite.c>
Order Deny,Allow
Deny from All
</IfModule>
Offline
you don't have to modify any file
juste use a rewrite condition to test the referer before teh rewrite rule
RewriteCond %{HTTP_REFERER} !^http://(www\.)?my-site.com/.*$ [NC]
ps : protecting i.php is not enough, you must protect _data/i folder too
Offline
The sample is created from a htaccess file of an other gallery software that protect all photo directorys. Every picture is loaded by php, like the new orginal protection of piwigo.
Offline