trigger_b4_dl.conf 1.8 KB

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