Web Rules Engine
The Web Rules Engine is a User Portal-based service that enables you to self-serve site rules as an alternative to .htaccess rules. The service currently supports management of the following rule types: IP-based Allow/Deny rules, response headers, and rewrite rules.
Overview
The Web Rules Engine (WREn) enables you to self-manage certain site traffic behaviors from the User Portal, such as:
- Disallowing IP or IP Range access to protect against malicious attacks and other negative site behavior
- Allowing IP or IP Range access for known good actors
- Preventing direct access to private files
- Restricting traffic from specific countries or regions
- Modifying cache-control headers and security headers
- Redirecting a page
- Rewriting a page URI
For those who previously leveraged .htaccess file rules to self-manage and control these behaviors, the Web Rules service can now be used instead via the User Portal.
Add Web Rule
To add access, header, and rewrite rules for any environment:
- From the Sites page, select the environment name
- Click Web Rules in the secondary lefthand menu. (You may have to expand the Advanced dropdown section)
- Next, you can choose the Access rules tab, the Header rules tab, or the Rewrite rules tab to manage a specific type of rule.
- Then, click Add Rule
Web Rules functionality is enabled by default on all environments, but can be disabled (EX: when troubleshooting) by selecting Disable web rules.