Converting requests to rules

From the Requests page, you can convert individual requests into pre-populated rules, enabling you to take action on similar requests. To convert a request into a rule, follow these steps:

  1. Fastly control panel
  2. Next-Gen WAF control panel
  1. Log in to the Fastly control panel.
  2. Go to Security > Next-Gen WAF > Requests.
  3. From the workspaces bar, click the menu Menu icon to the right of the workspace name and select a workspace.
  4. Locate or search for the request you want to convert into a rule.

  5. Click the document icon Document icon next to the request.

  6. Click Convert to rule.

  7. Select the request characteristics that the rule will be based on. For example, selecting IP address and Path will add two conditions to the rule. The conditions will look for the specific IP address and path featured in the request.

  8. Click Submit. For each selected request characteristic, a pre-populated condition is added to the Conditions section.

    A request rule designed to block requests to the '/login' page from the IP address '198.51.100.50'

  9. Under Type, select the type of rule you want to create (i.e., Request, Rate limit, or Signal exclusion).

  10. (Optional) Under Conditions, edit the rule conditions that were created based on the selected request characteristics and add additional conditions as needed.

  11. Under Actions, select the action the rule should take when a request meets the rule conditions (e.g., Block or Allow). Additional actions can be added by clicking Add action.

  12. Fill out the fields in the Details section as follows:

    • In the Description field, enter a description for the rule.
    • (Optional) Click the Status switch to disable the rule.
  13. Click Create workspace rule.