Loading documentation...
The document will appear here shortly.
The document will appear here shortly.
BotStopper evaluates bot rules in order. ALLOW, DENY, and CHALLENGE stop rule evaluation.
A matching WEIGH rule changes the request weight and continues to the next rule.
If no terminal bot rule matches, BotStopper evaluates weight thresholds in order.
If no threshold matches, the implicit default/allow rule allows the request.
The shipped policy includes rules and thresholds that challenge browser traffic. The implicit allow rule does not bypass those checks.
If your policy only blocks a specific bot, all other requests will be allowed:
{
"bots": [
{
"name": "block-amazonbot",
"user_agent_regex": "Amazonbot",
"action": "DENY"
}
]
}bots:
- name: block-amazonbot
user_agent_regex: Amazonbot
action: DENYIf you want to deny all traffic except what you explicitly allow, add a catch-all deny rule at the end of your policy list. Make sure to add ALLOW rules for any traffic you want to permit before this rule.
{
"bots": [
{
"name": "allow-goodbot",
"user_agent_regex": "GoodBot",
"action": "ALLOW"
},
{
"name": "catch-all-deny",
"path_regex": ".*",
"action": "DENY"
}
]
}bots:
- name: allow-goodbot
user_agent_regex: GoodBot
action: ALLOW
- name: catch-all-deny
path_regex: .*
action: DENYWEIGH rules continue evaluation.See Policy Definitions for more details on writing rules.
See configuration for deployment configuration.