File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / lighttpd / doc / outdated / trigger_b4_dl.txt
Revision 1.1.1.2 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Wed Nov 2 10:35:00 2016 UTC (7 years, 8 months ago) by misho
Branches: lighttpd, MAIN
CVS tags: v1_4_41p8, HEAD
lighttpd 1.4.41

    1: =======================
    2: Trigger before Download
    3: =======================
    4: 
    5: -------------------------
    6: Module: mod_trigger_b4_dl
    7: -------------------------
    8: 
    9: :Author: Jan Kneschke
   10: :Date: $Date: 2016/11/02 10:35:00 $
   11: :Revision: $Revision: 1.1.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: 
   21: Description
   22: ===========
   23: 
   24: Anti 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: 
   30: The trigger information is either stored locally in a gdbm file or remotely in memcached.
   31: 
   32: Requirements
   33: ------------
   34: 
   35:  * libpcre
   36:  * libgdbm or libmemcached
   37: 
   38: Options
   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: 
   50: If both trigger-before-download.gdbm-filename and
   51: trigger-before-download.memcache-hosts is set gdbm will take precedence.
   52: 
   53: Installation
   54: ============
   55: 
   56: memcached should be started with the option -M as we don't want to remove entry if the memory is full.
   57: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>