Rules Page
Custom Rules page
In this page you can add/modify as much as rules you need.
Lets have a deep look in to each elements in rules page.
In this topic:
1.Create rule
2.Define a rule filter
3.Add rule
4.Redirect uri
5.Rate Limit
6.Custom error text
7.IP/Geo reputation and URL Whitelist
1.Create rule
- 1.In home page, choose the domain where rules need to be applied.
- 2.And then go to rules page.
- 3.Select the drop down menu and add the value.
- 4.Once you add/modify rules click on "Update" button to deploy the rule.
2.Define a rule filter
Define a filter for the rule using predefined parameters.
Examples:
Here country equal Afghanistan will be blocked.
When request uri regex matches the user inputted pattern(here it is used regex of /a), WAF will block it.
User can enter regular expression of user agent that needs to be blocked.

The following parameters are available for use when defining rules.
- IP : IP address of client
- COUNTRY : The name of the country where the client sending the request is located.
- ASN : The client IP Autonomous System Number (ASN).
- USER AGENT : Checks for the specified string pattern in the User-Agent header in the client request.
- COOKIE : A cookie is an HTTP request header i.e. used in the requests sent by the user to the server.
- REQUEST URI : The part of a URL that identifies a resource, for example,
/images/daily-ad.jpg.
- HTTP METHOD : POST, GET, PUT, PATCH, and DELETE
- REFERRER : Referrer is the URL from which came a request received by a server.
- CONTENT TYPE : The value of the Content-Type HTTP header in the request.
- CONTENT LENGTH : The Content-Length header indicates the size of the message body, in bytes, sent to the recipient.
- URL LENGTH : The length of the URL.
3.ADD rule
- 1.Click on add rules to add more rules.
- 2.Select AND/OR logic.
- 3.Click on Update.
Example:

If you want to add more rules and set in to groups there are options to add group. Selecting AND & OR logic depends on user requirements. There is limits for adding rules according to your Prophaze plan.
4.Redirect uri
Example: Redirect to new site
5.Rate Limit

6.Custom error text
Enter status code and text and then click on apply.
Example: Error text will be displayed in browser for the HTTP status code entered.
7.IP/Geo reputation and URL Whitelist
In traffic and attack pages user have an option to blacklist and whitelist ip/country. All the data are displayed in rules page.
Following parameters are showed in this fields.
1.IP/country blocked
2IP/country whitelisted
3.URI whitelisted
Last modified 1yr ago