Converting requests to rules
- English
- 日本語
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:
- Fastly control panel
- Next-Gen WAF control panel
- Log in to the Fastly control panel.
- Go to Security > Next-Gen WAF > Requests.
- From the workspaces bar, click the menu to the right of the workspace name and select a workspace.
Locate or search for the request you want to convert into a rule.
Click the document icon next to the request.
Click Convert to rule.
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.
Click Submit. For each selected request characteristic, a pre-populated condition is added to the Conditions section.

Under Type, select the type of rule you want to create (i.e., Request, Rate limit, or Signal exclusion).
(Optional) Under Conditions, edit the rule conditions that were created based on the selected request characteristics and add additional conditions as needed.
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.
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.
Click Create workspace rule.
- Log in to the Next-Gen WAF control panel.
- From the Sites menu, select a site if you have more than one site.
Click Requests.
Locate or search for the request you want to convert into a rule.
Click View request detail.
Click Convert to rule in the upper-right corner.
Under Type, select the type of rule you want to make (Request, Rate limit, or Signal exclusion).
Under Conditions, select which characteristics of the request you want to convert into rule conditions. For example, selecting IP Address and Path will create conditions in the rule that look for the specific IP address and path featured in the request.
Click Continue.
Under Conditions, modify the rule as needed by adding and editing rule conditions.
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.
Under Status, optionally disable the rule by deselecting Always enabled. By default, rules are automatically enabled when created unless specifically disabled.
You can optionally set the rule to automatically disable after a set period of time. Click Change expiration and select a duration from the menu.
In the Description field, enter a description for the rule.
Click Create site rule.

