diff options
author | Jan Kneschke <jan@kneschke.de> | 2005-07-07 22:48:42 +0000 |
---|---|---|
committer | Jan Kneschke <jan@kneschke.de> | 2005-07-07 22:48:42 +0000 |
commit | 217458ee54f220a2e8d180f21b0ac0459a5dddef (patch) | |
tree | 3052b727f86fe1af98dd41fdedb1d0cc8276c327 /doc | |
parent | 7fd68f3c1fbef54bd048361be7c6f05b93503a4b (diff) | |
download | lighttpd-git-217458ee54f220a2e8d180f21b0ac0459a5dddef.tar.gz |
added trigger-b4-dl, upped version number to .15
git-svn-id: svn+ssh://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@429 152afb58-edef-0310-8abb-c4023f1b3aa9
Diffstat (limited to 'doc')
-rw-r--r-- | doc/Makefile.am | 6 | ||||
-rw-r--r-- | doc/trigger_b4_dl.txt | 58 |
2 files changed, 62 insertions, 2 deletions
diff --git a/doc/Makefile.am b/doc/Makefile.am index f61ff796..ae77c1a1 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -30,7 +30,8 @@ traffic-shaping.txt \ setenv.txt \ status.txt \ scgi.txt \ -cml.txt +cml.txt \ +trigger_b4_dl.txt HTMLDOCS=accesslog.html \ authentication.html \ @@ -61,7 +62,8 @@ HTMLDOCS=accesslog.html \ setenv.html \ status.html \ scgi.html \ - cml.html + cml.html \ + trigger_b4_dl.html EXTRA_DIST=lighttpd.conf lighttpd.user \ rc.lighttpd rc.lighttpd.redhat sysconfig.lighttpd \ diff --git a/doc/trigger_b4_dl.txt b/doc/trigger_b4_dl.txt new file mode 100644 index 00000000..f7e4875c --- /dev/null +++ b/doc/trigger_b4_dl.txt @@ -0,0 +1,58 @@ +======================= +Trigger before Download +======================= + +------------------------- +Module: mod_trigger_b4_dl +------------------------- + +:Author: Jan Kneschke +:Date: $Date: 2004/11/03 22:26:05 $ +:Revision: $Revision: 1.2 $ + +:abstract: + another anti hot-linking module + +.. meta:: + :keywords: lighttpd, hot-linking, deep-linking + +.. contents:: Table of Contents + +Description +=========== + +Anti Hotlinking: + + * if user requests ''download-url'' directly the request is denied and he is redirected to ''deny-url' + * if user visits ''trigger-url'' before requesting ''download-url'' access is granted + * if user visits ''download-url'' again after ''trigger-timeout'' has run down to the request is denied and he is redirected to ''deny-url'' + +The storage for the trigger information is either stored locally in a gdbm file or remotly in memcached. + +Requirements +------------ + + * libpcre + * libgdbm + * libmemcache + +Options +======= + +:: + + trigger-before-download.gdbm-filename = "/home/weigon/testbase/trigger.db" + trigger-before-download.memcache-hosts = ( "127.0.0.1:11211" ) + trigger-before-download.trigger-url = "^/trigger/" + trigger-before-download.download-url = "^/download/" + trigger-before-download.deny-url = "http://192.168.1.5:1025/index.html" + trigger-before-download.trigger-timeout = 10 + +If both trigger-before-download.gdbm-filename and +trigger-before-download.memcache-hosts is set gdbm will be prefered. + +Installation +============ + +memcached should be started with the option -M as we don't want to remove entry if the memory is full. + |