I'm running a website "www.example.com"
on classic load balancer and behind classic load balancer attached EC2 instances, and also using a cloudfront assets.example.com
for static data.
I noticed in nginx access logs some IPs are scraping the data daily. So I want to block those IPs in AWS WAF rules. But WAF can be associated with: 1) CloudFront 2) API Gateway 3)Application Load Balancer.
I can block the IPs only for static data which goes through CloudFront.
Below is the nginx logs example:
10.0.0.1 "POST /candidate/Event_v3/eventRegistered
10.0.0.2 "GET /account/preference
How to block those IPs to not access the account, candidate etc sections?
Or how to block whole website www.example.com
for particular IPs?
Can anyone help me out please.