1=======================
2Trigger before Download
3=======================
4
5-------------------------
6Module: mod_trigger_b4_dl
7-------------------------
8
9:Author: Jan Kneschke
10:Date: $Date: 2004/11/03 22:26:05 $
11:Revision: $Revision: 1.2 $
12
13:abstract:
14  another anti-hot-linking module
15
16.. meta::
17  :keywords: lighttpd, hot-linking, deep-linking
18
19.. contents:: Table of Contents
20
21Description
22===========
23
24Anti Hotlinking:
25
26 * if user requests ''download-url'' directly, the request is denied and he is redirected to ''deny-url'
27 * if user visits ''trigger-url'' before requesting ''download-url'', access is granted
28 * if user visits ''download-url'' again after ''trigger-timeout'' has elapsed, the request is denied and he is redirected to ''deny-url''
29
30The trigger information is either stored locally in a gdbm file or remotely in memcached.
31
32Requirements
33------------
34
35 * libpcre
36 * libgdbm or libmemcache
37
38Options
39=======
40
41::
42
43  trigger-before-download.gdbm-filename = "/home/weigon/testbase/trigger.db"
44  trigger-before-download.memcache-hosts = ( "127.0.0.1:11211" )
45  trigger-before-download.trigger-url = "^/trigger/"
46  trigger-before-download.download-url = "^/download/"
47  trigger-before-download.deny-url = "http://192.168.1.5:1025/index.html"
48  trigger-before-download.trigger-timeout = 10
49
50If both trigger-before-download.gdbm-filename and
51trigger-before-download.memcache-hosts is set gdbm will take precedence.
52
53Installation
54============
55
56memcached should be started with the option -M as we don't want to remove entry if the memory is full.
57
58