DEV Community

Arun Kumar for AWS Community Builders

Posted on

Blocking bots using AWS WAF

Example to block bots on APIGateway

  • First create a condition. Below example condition is to match a header —

1

  • Then create a rule. A rule can have multiple condition. Ideally a rule condition is a group of related checks.

2

  • Then associate the rule to the web-acl that the APIGateway endpoint points to.

3

  • Example below is a webacl used by an app endpoint.

4

Top comments (0)