Navigate to Add Rules > Add Rules and Rule Groups page > Add my own rules and rule groups > Rule builder > Rule visual editor.
Define the Rule Settings: Name, Type (Regular rule), Condition (If a request matches the statement).
Configure Statement Settings: Inspect a request component (e.g., Single header), Specify the header, Match Type (Exactly matches string), String to Match (e.g., Pingdombot).
Set Action: Initially select CountCheck CloudWatch logs, then change to Block or Allow.