Adding a Web Application Firewall Action

Describes how to add an action to a web application firewall policy.

Using the Console

  1. Open the navigation menu and click Identity & Security. Under Web Application Firewall, click Policies.

    Alternatively, open the Web Application Firewall page and click Policies under Resources.

    The WAF Policies page appears.

  2. Select the Compartment from the list.

    All the WAF policies in that compartment are listed in tabular form.

  3. (Optional) Apply one or more of the following Filters to limit the WAF policies displayed:
    • State

    • Name

    • Policy Type: Select WAF Policy.

  4. Select the WAF policy for which you want to add an action.

    The WAF Policy Details dialog box appears.

  5. Click Actions under Resources.

    The Actions list appears.

  6. Click Manage Actions.

    The Manage Actions dialog box appears.

  7. Click Add Action.

    The Add Action dialog box appears.

  8. Complete the following:
    • Action Name: Enter the name of the action.

    • Action Type: Specify the action type:

      • Allow: Skips all remaining rules in the current module.

      • Check: Does not stop the execution of rules. Instead it generates a log message documenting the result of the rule.

      • Return HTTP Response: Returns a defined HTTP response.

        Select the Response Code from the list.

        Headers: Complete the following:

        • Header Name: Enter the name of the header.

        • Header Value: Enter the associated value of the header.

        • Click + Another Header to display another header row where you can enter a header name and value pair. Click X to delete the associated header row.

        Response Page Body: Enter the HTTP response body, for example a JSON error response:

        {"code":"403","message":"Forbidden"}
  9. Click Add Action.

    The Add Action dialog box closes.

  10. Click Save Changes in the Manage Actions dialog box.

The action you created is included in the Action list.