DEV Community

loading...
AWS Community Builders

Blocking bots using AWS WAF

Arun Kumar
AWS Community Builder
・1 min read

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

Discussion (0)