Announcement

#1 2009-05-12 00:58:06

repie38
Piwigo Team
grenoble (FR)
2006-05-23
418

[plugin] HotBlocker

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

 

#2 2009-05-12 10:29:15

nicolas
Former Piwigo Team
2004-12-30
1163

Re: [plugin] HotBlocker

It can work for stupid users but as all content comming for visitors HTTP_HOST can be force to the correct value.

Offline

 

#3 2009-08-05 17:09:41

username
Guest

Re: [plugin] HotBlocker

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.

 

#4 2009-08-05 18:07:14

repie38
Piwigo Team
grenoble (FR)
2006-05-23
418

Re: [plugin] HotBlocker

that's true, hotblocker only protect "./galleries/" dir.
I'll update it to protect "./upload/" dir too.

stay tuned on this thread ;)

Offline

 

Board footer

Powered by FluxBB

github twitter facebook google+ newsletter Donate Piwigo.org © 2002-2017 · Contact