For advanced users !
Watch out ! this might don't work, depends on your apache config!
[extension by repie38] HotBlocker
this plugin creates .htaccess files in your './galleries/' directory to disallow "hotlink" to your pics, BUT not for your thumbnails (so rss feed still works !!) :
- 1 at the root of this directory. (looks like)
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^$_SERVER["HTTP_HOST"]/.*$ [NC]
RewriteRule .*\.*$ http://yoursite.com/piwigo/plugins/hotb … bloked.gif [NC]
- and 1 in each thumbnail directory.
RewriteEngine on
RewriteRule ^.*$ -
You can only activate (so files are created, replaced if already exists) or deactivate (so files are deleted, even if made by your own, not by the plugin)
Last edited by repie38 (2009-05-12 01:13:11)
Offline
It can work for stupid users but as all content comming for visitors HTTP_HOST can be force to the correct value.
Offline
It can avoid some kind off hard linking, which is allready a good point.
Every protection can by bypass ....
For this mod, I've just tried it, and it seems to only work with hard galleries, and not virtual ones.
images uploaded with pLoader tool are only in virtual part.
.htaccess files are not created in "upload" directory.
that's true, hotblocker only protect "./galleries/" dir.
I'll update it to protect "./upload/" dir too.
stay tuned on this thread ;)
Offline