Incoming firewall (WAF)
Published
Updated
⬅️
Block harmful incoming requests.
The incoming firewall is a web application firewall (WAF) for a fortrabbit environment. It blocks common attacks and bad bots in Apache, before they use up PHP processes and fill the logs. The setting is experimental.
The incoming firewall is experimental.
About the incoming firewall
Bots scan websites for vulnerabilities and content all day. Even a request that fails takes up a PHP process and adds lines to the logs. AI crawlers that ignore robots.txt can send enough requests to slow a website down.
The incoming firewall uses the rules of nG Firewall by Perishable Press. Apache checks every request against them and answers a match with a 403 error, without starting PHP.
Usage
Turn the incoming firewall on and off in the environment settings in the dashboard.
Quirks
- Apache load: the rules add work to every request in Apache, while fewer requests reach PHP.
- Software installers: the rules can block the installer of a CMS. Install the software first, then turn the firewall on.
Alternatives
Own .htaccess rules
Write rules for the specific case in .htaccess. To block single IPs or ranges, see block IPs with .htaccess, or browse the .htaccess section.
External service
Some DNS and CDN providers filter bot traffic before it reaches the web server: