Class RefererCheckModule

Module
   |
   +----RefererCheckModule

Located in File: Program_Root/referer_check.mod.php


RefererCheckModule
 This module checks the referer. It is possible to only accept a set of
 forms to use the script. It is also possible to do different things with
 different referers. Last possibility of this module is to show the form
 that called this script with some error. The error messages can be shown
 within the form. This can be done by adding some template-code to the
 form. The default is that the errors are printed at the beginning or the
 end of the form. It is usefull to use the cookie-module too, zo the
 script can fill in the fields already entered with the cookies that are
 set.
 

Class Variable Summary
$name
Default Value: ->"RefererCheckModule"<-
$id
Default Value: ->MOD_REFERERCHECK<-
$execlevel
Default Value: ->10<-
$referer
Default Value: ->""<-
$refererip
Default Value: ->""<-
$allow
Default Value: ->array()<-
$deny
Default Value: ->array()<-

Method Summary
RefererCheckModule ( )
Constructor
before_action ( )
Before action
do_action ( )
Do action
after_action ( )
After action

Variable Detail

$name



$id



$execlevel



$referer



$refererip



$allow



$deny




Function Detail

RefererCheckModule

RefererCheckModule ( )

Constructor
 Set options and call the superConstructor

Function Parameters:
Function Info:

before_action

before_action ( )

Before action
 Check if the referer exists, check the options and create an allow and
 a deny array with ip-addresses and hostnames

Function Parameters:
Function Info:

do_action

do_action ( )

Do action
 First check if referer is in deny list. If so, exit. If not, check if
 there is an allow list. If not: allow. If so, only allow when present.

Function Parameters:
Function Info:

after_action

after_action ( )

After action
 Cleanup

Function Parameters:
Function Info: