59 lines
1.5 KiB
Raw Normal View History

Trigger before Download
Module: mod_trigger_b4_dl
:Author: Jan Kneschke
:Date: $Date: 2004/11/03 22:26:05 $
:Revision: $Revision: 1.2 $
another anti hot-linking module
.. meta::
:keywords: lighttpd, hot-linking, deep-linking
.. contents:: Table of Contents
Anti Hotlinking:
* 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 run down to the request is denied and he is redirected to ''deny-url''
The storage for the trigger information is either stored locally in a gdbm file or remotly in memcached.
* libpcre
* libgdbm
* libmemcache
trigger-before-download.gdbm-filename = "/home/weigon/testbase/trigger.db"
trigger-before-download.memcache-hosts = ( "" )
trigger-before-download.trigger-url = "^/trigger/" = "^/download/"
trigger-before-download.deny-url = ""
trigger-before-download.trigger-timeout = 10
If both trigger-before-download.gdbm-filename and
trigger-before-download.memcache-hosts is set gdbm will be prefered.
memcached should be started with the option -M as we don't want to remove entry if the memory is full.