Setup Custom Rules and Exceptions | Check Point WAF
What are Custom Rules and Exceptions?
CloudGuard WAF is automatically configured through the wizard and learning mechanisms, which are sufficient in most cases.
Custom Rules and Exceptions allow security administrators to fine-tune behavior when specific traffic should be handled differently — for example, to prevent false positives or adjust enforcement for known traffic patterns.
Creating an Exception
Steps:
Go to Monitor->Important Events
Right-click a relevant Log (URI, Parameter Name, etc.)
Select Add a Custome Rule / Exception
Review the exception and click OK and Enforce
Go to Policy → Assets
Edit an asset and open Custom Rules and Exceptions
Click to add new rule
Configure conditions and action
Click OK and Enforce
Actions
The following action are supported:
Drop – Block matching traffic
Skip – Skip inspection of a specific parameter, indicator or Protection Name while continuing to inspect the rest of the request
Is only relevant to the Web Attacks & IPS Sub practices
Accept – Allow matching traffic
Suppress Log – Do not generate logs for matching traffic
Enforcement Order
When a request matches multiple exceptions with different actions, the most restrictive action is applied.
The actions are enforced in the following order (from most to least restrictive):
- Drop
- Skip
- Accept
Suppress Log is evaluated independently and is always applied in addition to the selected enforcement action.
Exception Keys Overview
| Exception Key | What It Matches | Relevant Security Practices |
|---|---|---|
| Host | HTTP host name (regular expression) | All CloudGuard WAF Security |
| URI | Full HTTP request URI | All CloudGuard WAF Security |
| HTTP Method | HTTP method (GET, POST, PUT, DELETE, PATCH) | All CloudGuard WAF Security |
| Source IP | Client IP address or CIDR range | All CloudGuard WAF Security |
| Source Identifier | Identifier as defined in the asset configuration (regular expression) | All CloudGuard WAF Security |
| Country Code | Source country based on IP (ISO-3166 Alpha-2 code) | All CloudGuard WAF Security |
| Country Name | Source country name based on IP (ISO-3166) | All CloudGuard WAF Security |
| Header Name | HTTP header name (regular expression) | All CloudGuard WAF Security |
| Header Value | HTTP header value (regular expression) | All CloudGuard WAF Security |
| Parameter Name | Name of a parameter in the request body (XML or JSON) | Web and API Attacks, Schema Validation |
| Parameter Value | Value of a parameter in the request body (XML or JSON) | Web and API Attacks, Schema Validation |
| Parameter Location | Location of the matched parameter (e.g. body, cookie, URL) | Web and API Attacks |
| Indicator | Specific indicator(s) detected by the WAF (regular expression) | Web and API Attacks |
| Response Body | Pattern found in the HTTP response body (regular expression) | All CloudGuard WAF Security |
| Protection Name | Name of the security signature or protection | IPS and Snort Rules only |
| File Name | Name of a transferred file | File Security only |
| File Hash | MD5 hash of a transferred file | File Security only |
Some exception keys support the Skip action. See Skip Action Support for details and limitations.
How GEO Location Works in Check Point WAF
The GEO filter lets you control which countries can access your protected assets. When a request arrives, the WAF checks the source IP against your configured list of allowed or blocked countries and acts accordingly.
The WAF collects all IP addresses present in the X-Forwarded-For (XFF) header. It then removes any IPs you have added to the previous hops list in your asset configuration. The remaining IPs are checked against your geo rules.
Your Source Identity setting — including any custom Header Key you configure does not affect how the GEO filter resolves IPs. The GEO filter always reads from XFF, regardless of your Source Identity configuration.
IPS Exceptions Scope Exceptions for requests that are blocked or detected by IPS are evaluated only against the following attributes:
protectionName– The name of the signaturehostName– The HTTP host name (if available)sourceIP– The client IP address (if available)url– The HTTP decoded path (if available)sourceIdentifier– The source identifier (if available)
Any additional attributes defined in an exception (for example, HTTP method) are not supported for IPS and are ignored. As a result, a request may still be blocked by IPS even if an exception is defined using unsupported fields.
Skip Action Support
The Skip action allows excluding a specific part of a request from inspection, while continuing to inspect the rest of the traffic for malicious behavior.
Skip is typically used to reduce false positives caused by known parameters or indicators, without weakening overall protection.
How Skip Works
The Skip action excludes a specific matched value from security inspection, while continuing to inspect all other parts of the request.
- Skip applies only to Skip-capable keys ( Parameter Name, Parameter Value, and Indicator, Protection Name), which define what is skipped
- All other keys act as scope or context, limiting when the exception applies
- Only the matched value is skipped — all other request components continue to be inspected.