Skip to content
Firewall
Visit Firewall on GitHub
Set theme to dark (⇧+D)

Manage Rate Limiting Rules in the dashboard

You can manage Rate Limiting Rules under the Custom Rules tab in the Firewall app.

The Custom Rules interface allows you to:

  • Browse and filter rules
  • Create Rate Limiting Rules
  • Edit and delete rules
  • Enable or disable rules

Custom Rules tab

Create a Rate Limiting Rule

To create a new Rate Limiting Rule:

  1. Log in to the Cloudflare dashboard.

  2. Select the Websites tab and choose the site for which you want to create a rule.

  3. Click the Firewall tile in the app bar, and then click the Custom Rules tab.

  4. Click Create Rate Limiting rule.

  5. In the Create Firewall Rule page that displays, enter a descriptive name for the rule in Rule name.

    Create Rate Limiting Rule page

  6. Under If incoming requests match..., use the Field drop-down list to choose an HTTP property. For each request, the value of the property you choose for Field is compared to the value you specify for Value using the operator selected in Operator.

  7. Under With the same..., add one or more characteristics that will define the request counters for rate limiting purposes. Each value combination will have its own counter to determine the request rate. Check Determining the request rate for more information.

  8. Under And rate exceeds..., define the rate limit and the time period to consider when determining the request rate.

  9. Select the rule action from the Choose action drop-down list. For example, selecting Block tells Cloudflare to refuse requests in the conditions you specified when the request limit is reached.

  10. Under For..., select the mitigation timeout. This is the time period during which Cloudflare applies the select action once the request rate is reached.

  11. To save and deploy your rule, click Save and Deploy. If you are not ready to deploy your rule, click Save as Draft.

Manage Custom Rules

You can edit, delete, or enable/disable rules in the Custom Rules card.

Custom Rules card

Enable or disable a rule

To enable/disable a rule, click the On/Off toggle button on the right of the rule you want to change.

Edit a rule

To edit a rule:

  1. Click Edit on the right of the rule you want to change.
  2. Update the rule parameters.
  3. Click Save.

Delete a rule

To delete a rule, click Delete on the right of the rule you want to delete and confirm the operation.