Bot Management
bot_management
Methods
Retrieve a zone's Bot Management Config
Updates the Bot Management configuration for a zone.
This API is used to update:
- Bot Fight Mode
- Super Bot Fight Mode
- Bot Management for Enterprise
See Bot Plans for more information on the different plans
If you recently upgraded or downgraded your plan, refer to the following examples to clean up old configurations.
Copy and paste the example body to remove old zone configurations based on your current plan.
Clean up configuration for Bot Fight Mode plan
{
"sbfm_likely_automated": "allow",
"sbfm_definitely_automated": "allow",
"sbfm_verified_bots": "allow",
"sbfm_static_resource_protection": false,
"optimize_wordpress": false,
"suppress_session_score": false
}
Clean up configuration for SBFM Pro plan
{
"sbfm_likely_automated": "allow",
"fight_mode": false
}
Clean up configuration for SBFM Biz plan
{
"fight_mode": false
}
Clean up configuration for BM Enterprise Subscription plan
It is strongly recommended that you ensure you have custom rules in place to protect your zone before disabling the SBFM rules. Without these protections, your zone is vulnerable to attacks.
{
"sbfm_likely_automated": "allow",
"sbfm_definitely_automated": "allow",
"sbfm_verified_bots": "allow",
"sbfm_static_resource_protection": false,
"optimize_wordpress": false,
"fight_mode": false
}
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example: Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY
Bot Management Write
Identifier.
Whether the API call was successful.
Domain types
Feedback
bot_management.feedback
Methods
Returns all feedback reports previously submitted for the specified zone. Feedback reports help improve detection by sharing samples of traffic that were misclassified as bots or humans.
Submit a feedback report for the specified zone. Use type to indicate whether the report is a false positive (good traffic flagged as bot) or a false negative (bot traffic missed). Furthermore, you can also use expression as a wirefilter to identify the affected traffic sample.
See more accepted API fields and expression types at https://developers.cloudflare.com/bots/concepts/feedback-loop/#api-fields and https://developers.cloudflare.com/bots/concepts/feedback-loop/#expression-fields, respectively.
Domain types
Type of feedback report.
Top attributes contributing to the feedback sample. Keys include topASNs, topCountries, topHosts, topIPs, topJA3Hashes, topJA4s, topPaths, topUserAgents.
Map of bot scores (1-99) to request counts. Sum must equal requests.
Map of score source to request counts. Sum must equal requests.