Policy

The Policy page is part of the Alert Logic Managed Web Application Firewall (WAF) section in the web based management interface. To learn about all of the features in the WAF section, see WAF.

This page contains information for the following features found under the Policy section on the WAF page :

To go to the documentation for the previous section of Alert Logic Managed Web Application Firewall (WAF), see WAF. To go to the documentation for next subsection in the WAF section, see Protocol Restrictions .

To access the Policy page in the WAF management interface:

  1. On the left panel, under Services, click Websites.
  2. On the Websites page, click the website you want to manage.
  3. Under WAF, click Policy.

If you want to see all the settings on the Policy page, on the upper-right corner, change the Display preset to Advance.

To save configuration changes or edits you make to any features and options, you must click Save on the lower-right of the section or page where you are making changes. Click apply changes on the upper-left corner of the page, and then click OK. Your changes will not be stored if you do not properly save your changes.

Validation order and scope

The Policy page is defined a list of allowed requests and parameters to a given web system. WAF filters access of the allowed requests and parameters.

The policy is defined by a collection of proxy global policies and application specific policies. This combination provides the ability to specify short yet fine grained access control policies, global and web application.

Global policy

Global policies are general rules which specify criteria that allow requests on a proxy global basis. Rules are specified by extension and by specifying a grammar (using regular expressions) for valid URLs and parameters.

Global patterns include Static content policies, Global URL policies, and Global parameters policies.

Web applications

In access policy terms, a web application is defined as an URL path which takes one or more parameters as input.

The web application policy list consists of one or more URL paths each with a specific policy, a web application policy entry.

The web application policy entry is defined by its URL path. The valid input for one or more of the URLs parameters are defined using either a list of allowed values, grammar (a regular expression) or a class which is a predefined regular expression.

Web application policy entries always take precedence over global rules. It is possible though to use a combination of global and specific rules, even for a single application.

Incoming requests are validated in the following order:

  1. Static content policy: If the extension and path of the requested filename matches the policy defined in static content policy and the request has no parameters, the request is allowed.
  2. Global URL path policy: If the request has no parameters and one of the global URL policy patterns matches, it is allowed. If the URI matches one of the Denied paths policy rules, the request is denied.
  3. Web applications policy: If the request (including possible parameters) matches an entry in the detailed web application policy, it is allowed.
  4. Web applications policy + global parameters policy: If a request matches an entry in the web applications policy but one or more parameters are offending, these parameters are checked against the global parameters policy. If there is a combined match, the request is allowed.
  5. Global URL policy + global parameters policy:If a requested URL with parameters matches a global URL policy pattern and all supplied parameters match global parameter patterns the request is allowed.
  6. No match:: The request is denied.

Regular Expressions guide

WAF has full support for standard PCRE (Perl Compatible Regular Expressions). Click the drop-down to follow a brief regular expression guide. For a more thorough explanation of the subject some links and books are recommended at the end of the section.