We use cookies on our website to ensure we provide you with the best experience on our website. By using our website, you agree to the use of cookies for analytics and personalized content.This website uses cookies. More Information
It seems like your browser didn't download the required fonts. Please revise your security settings and try again.
Barracuda Web Application Firewall

How to Add a Content Rule

  • Last updated on

The BASIC > Services page allows you to create content rules for a Service. Rules added to the Service allow content-aware processing decisions for Web traffic coming into that Service. Rules can use HTTP request headers to make load balancing and caching policy decisions. To add a content rule to a Service:

  1. From the BASIC > Services page in the Services section find the Service to which you want to add a content rule.
  2. Click Rule next to the Service. The Add Content Rule window appears.
  3. Specify values for the following fields:
    1. Rule Group Name – Name to identify this rule group.
    2. Status - Set to On to make this rule group part of the rule match.
    3. Host Match Enter the matching criterion for host field in the Request Header. This is either a specific host match or a wildcard host match with a single " * " anywhere in the host name. Specify * if you want the rule to be matched with any host. If the Service hosts multiple applications under different domains and you wish to add the rule only for a particular domain, enter the relevant host name such as - www.example.com or *.example.com.
    4. URL Match Enter the matching criterion for URL field in the Request Header. The URL should start with a "/" and can have only one " * " anywhere in the URL. A value of /* means that the ACL applies for all URLs in that domain. Use /* if you want to cover all the URLs in your domain. (Example: /*, /index.html, /public/index.html)
    5. Extended Match Enter an expression that consists of a combination of HTTP headers and/or query string parameters. Use '*' to apply to any request, that is, do not apply the Extended Match condition. Refer to Extended Match Syntax Help to find out how to write extended match expressions.
    6. Extended Match Sequence Specify a number which will determine the order for matching the extended match rule. The order range is 1 to 1000 (default is 1000).
  4. Click Add.

Back To: How to Redirect Traffic to a Different Back-end Server Based on a URL Pattern

Last updated on