Variable Rules
Last updated
Was this helpful?
Last updated
Was this helpful?
If a user wants to extract or set a custom variable, then it can be done using Variable Rules. It can be used in the following:
Form Validation : If a user wants a form field to be immutable, then he can create a variable for that field that is going to be immutable. This variable can be used in form validation to check whether the field is immutable or not. If the field is modified, then the request will be dropped
Note: Any parameter from the Request/Response can be stored in a variable.
1. Go to WAF > Listeners > Rules > Variable Rules
2. Create rules with different conditions and Save Changes.
PARAMETERS
ACCEPTED VALUES
DEFAULT
Rule Name
String
None
Rule Message
String
None
Rule Priority
Integer
None
Evaluation Phase
drop-down
Request
Variable
Drop-down
Blank
Mutation Action
drop-down
SET
Value
String
None
Specify a user-friendly name to identify the rule. The rule name takes alpha-numeric input.
The user can add a short description of the rule. The description would explain the purpose of the rule.
Set the priority of the rule. If two rules have the same priority, then selection will be random.
Users can set the evaluation phase either for request coming from end users or for response sending back to end users.
Users can specify the mutation action.
Users can specify the value for the rule.
User can define the condition phase
User can define the source location where this condition needs to be applied
User can select the condition which was previously mentioned in the drop down.
User can mention the value which should be matched.
User can select the variable which should be earlier created under .