How can I configure AWS ELB to block certain IP addresses, e.g., to block scrapers?

1.1k views Asked by At

In my web logs, I see a very large number of requests originating from the same IP address. A closer look at the type of requests leads to the conclusion that it is a scraper. How do I block the IP address of this scraper in AWS ELB?

1

There are 1 answers

1
Erik van den Berg On

Use the AWS console as follows:
1. Select AWS Service "VPC" See screenshot
2. Select in the left menu "Network ACLs"
3. Select the VPC in which your ELB is running, Click "Inbound Rules", Click "Edit", and supply rules to deny specific IP addresses. Give them a lower "Rule#" than the "Allow 0.0.0.0/0 rule, so that they are executed first. See screenshot