Firewall¶
The Firewall feature of Peakhour.IO controls incoming client requests based on specific conditions. When a client request matches a firewall rule, the system applies the specified action and stops evaluating further firewall rules.
Example¶
The filter matches requests from specific IP addresses or from Australia:
The configuration allows requests that match the rule to proceed:
For more information on the firewall.allow
action, refer to the Firewall section in the vconf documentation.
Available Actions¶
firewall.allow
: Allows the client request to proceed, skipping remaining firewall rules.firewall.deny
: Blocks the client request, skipping remaining firewall rules.firewall.challenge
: Presents a challenge to the client, skipping remaining firewall rules.firewall.log
: Logs the request and continues processing remaining firewall rules.
Fields¶
The firewall phase provides access to the following fields:
Use Cases¶
- Block traffic from specific countries or IP ranges.
- Allow only verified bots to access certain resources.
- Implement rate limiting based on client fingerprints.
- Customise access rules based on user agent information.