|
|
8 years ago | |
|---|---|---|
| .. | ||
| csrf | 8 years ago | |
| README.md | 8 years ago | |
| config.php | 8 years ago | |
| index.php | 8 years ago | |
CSRFP_TOKEN: name of the csrf nonce, used for cookie or posting as argument. default: csrfp_token (if left blank)logDirectory: location of the directory at which log files will be saved relative to config.php file. This is required for file based logging (default), Not needed, in case you override logging function to implement your logging logic. (View Overriding logging function)
../log/failedAuthAction: Action code (integer) for action to be taken in case of failed validation. Has two different values for bot GET and POST. Different action codes are specified as follows, (0 for both GET & POST):0 Send 403, Forbidden Header1 Strip the POST/GET query and forward the request! unset($_POST)2 Redirect to custom error page mentioned in errorRedirectionPage3 Show custom error message to user, mentioned in customErrorMessage4 Send 500, Internal Server Error header
errorRedirectionPage: Absolute url of the file to which user should be redirected. customErrorMessage: Error Message to be shown to user. Only this text will be shown!jsPath: location of the js file relative to config.php. ../js/csrfprotector.jsjsUrl: Absolute url of the js file. (See Setting up for more information)tokenLength: length of csrfp token, Default 10secureCookie: sets the "secure" HTTPS flag on the cookie. falsedisabledJavascriptMessage: messaged to be shown if js is disabled (string)verifyGetFor: regex rules for those urls for which csrfp validation should be enabled for GET requests also. (View verifyGetFor rules for more information)