Script Handler

Purpose

You can use Python scripts to expand the scope of vWAF to suit your specific requirements. The Script Handler executes the scripts. For more information regarding creating and applying scripts, see Implementing Python Scripts.

For more information regarding adding and editing Handlers, see Editing Handlers.

Severity

Events triggered by this handler are given the severity: medium. (For details on severity levels, see Severity of Events Triggered by Handlers).

Recommendations for use

Use the Script Handler to enable Python scripts, to expand the functionality of vWAF.

For further information regarding creating scripts, see Implementing Python Scripts.

ATTENTION
In detection mode, only functions that are accessible during requests apply (see Accessible Python Modules and Functions); any response functions are ignored in detection mode.

Attributes

Attribute Meaning

Script (script name)

Enable the script, as required.

To view the script details or update the order in which scripts execute, click Open Script Library. The Script Library allow you to review the scripts and modify details as required.

After enabling the required scripts, click Save.

For debugging purposes, you can use the function log of the module http to write information to the vWAF log files.

ATTENTION
Should you by mistake create an infinite loop, none of your web applications are accessible at all. This even applies if the Script Handler is only used with in a ruleset in detection mode.

For details regarding entries added to the log file by this handler, see the relevant section in Entries in Application-Specific Log Files.