1 Answer
- Newest
- Most votes
- Most comments
1
Hello.
AWS WAF's rate-based rules should make judgments based on IP addresses, so if you know the IP address used by the bot you want to allow requests for, you can create an IP set.
However, this method cannot be used if the bot uses an unspecified number of IP addresses.
https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-type-ipset-match.html
Alternatively, you may want to add a Bot Control rule to allow bots that AWS deems to be healthy.
If you place this rule above the rate-based rule, it will be evaluated first, so I don't think it will be blocked by the rate-based rule.
https://docs.aws.amazon.com/waf/latest/developerguide/waf-bot-control-example-allow-verified-bots.html
Relevant content
asked 3 years ago
asked 2 years ago

Hi, Riku. I know the IP addresses of the bots but I think the bots use a lot of different IP addresses and I cannot keep updating the IP set.
So, my only option is to use the paid AWS managed Bot Control rule group and remove the rate-based rule since it will be blocking any IP address that send too many requests?
It is possible to configure custom rules to allow matches in the request body or request headers, but this is not recommended as these values can be easily forged. Therefore, I think it would be a good idea to use Bot Control, an AWS managed rule.
Thanks a lot for your answers, Riku.