blob: 1efd3fdbd0d51176a9cadfe39e73eba3f4a70412 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
#######################################################################
##
## Trigger before download
## ---------------
##
## - 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
## elapsed, the request is denied and he is redirected to ''deny-url''
##
## http://www.lighttpd.net/documentation/trigger_b4_dl.html
##
server.modules += ( "mod_mod_trigger_b4_dl" )
##
## To store the trigger state you can either use a local GDBM
## file or memcached(s).
##
##
## Path to the local GDBM file.
##
trigger-before-download.gdbm-filename = home_dir + "/trigger.db"
##
## List of memcached servers.
##
#trigger-before-download.memcache-hosts = ( "127.0.0.1:11211" )
##
## URL prefix a visitor has to visit before downloading is allowed
##
trigger-before-download.trigger-url = "^/trigger/"
##
## URL Prefix of the proteced area.
##
trigger-before-download.download-url = "^/download/"
##
##
## The deny url.
##
trigger-before-download.deny-url = "http://www.example.com/index.html"
##
## How long the "ticket" of the user will be valid.
##
## Value in seconds.
##
trigger-before-download.trigger-timeout = 10
##
## Normally the memcached key will be the remote ip of the request
## If you store other data in the memcached aswell and want to avoid
## key collisions you can configure a memcache-namespace.
##
## The key for the request will be memcache-namespace + remote_ip than.
##
#trigger-before-download.memcache-namespace = "t4bdl_"
##
## If set to 1, the module will log some debug informations.
##
#trigger-before-download.debug = 0
##
#######################################################################
|