Module | +----RefererCheckModule
Located in File: Program_Root/referer_check.mod.php
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.
ModulesHerman Suijs| Class Variable Summary |
$name
Default Value:
|
$id
Default Value:
|
$execlevel
Default Value:
|
$referer
Default Value:
|
$refererip
Default Value:
|
$allow
Default Value:
|
$deny
Default Value:
|
| Method Summary |
RefererCheckModule ( )
Constructor |
before_action ( )
Before action |
do_action ( )
Do action |
after_action ( )
After action |
| Variable Detail |
| Function Detail |
RefererCheckModule ( )
ConstructorSet options and call the superConstructor
before_action ( )
Before actionCheck if the referer exists, check the options and create an allow and a deny array with ip-addresses and hostnames
do_action ( )
Do actionFirst 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.
after_action ( )
After actionCleanup