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
    • IP that have been blocked for security reasons at a server level cannot be allowed using Web Rules. Allowing an IP using the Web Rules Engine only impacts IPs denied by another access rule. Reach out to Support for more assistance with blocked IPs.
  • 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:

  1. From the Sites page, select the environment name
  2. Click Web Rules in the secondary lefthand menu. (You may have to expand the Advanced dropdown section)
  3. Next, you can choose the Access rules tab, the Header rules tab, or the Rewrite rules tab to manage a specific type of rule.
  4. 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.