12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- #######################################################################
- ##
- ## 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
- ##
- #######################################################################
|