1
#######################################################################
3
## Trigger before download
6
## - if user requests ''download-url'' directly, the request is denied
7
## and he is redirected to ''deny-url'
8
## - if user visits ''trigger-url'' before requesting ''download-url'',
10
## - if user visits ''download-url'' again after ''trigger-timeout'' has
11
## elapsed, the request is denied and he is redirected to ''deny-url''
13
## http://www.lighttpd.net/documentation/trigger_b4_dl.html
15
server.modules += ( "mod_mod_trigger_b4_dl" )
18
## To store the trigger state you can either use a local GDBM
19
## file or memcached(s).
23
## Path to the local GDBM file.
25
trigger-before-download.gdbm-filename = home_dir + "/trigger.db"
28
## List of memcached servers.
30
#trigger-before-download.memcache-hosts = ( "127.0.0.1:11211" )
33
## URL prefix a visitor has to visit before downloading is allowed
35
trigger-before-download.trigger-url = "^/trigger/"
38
## URL Prefix of the proteced area.
40
trigger-before-download.download-url = "^/download/"
46
trigger-before-download.deny-url = "http://www.example.com/index.html"
49
## How long the "ticket" of the user will be valid.
53
trigger-before-download.trigger-timeout = 10
56
## Normally the memcached key will be the remote ip of the request
57
## If you store other data in the memcached aswell and want to avoid
58
## key collisions you can configure a memcache-namespace.
60
## The key for the request will be memcache-namespace + remote_ip than.
62
#trigger-before-download.memcache-namespace = "t4bdl_"
65
## If set to 1, the module will log some debug informations.
67
#trigger-before-download.debug = 0
70
#######################################################################