How to Block the Amazon AWS EC2

miqrogroove
2015-01-02T14:53:36+00:00

Years ago, I found it necessary to start maintaining a list of Amazon’s subnets so that I could block them easily. ¬†This list can be used in .htaccess and firewalls that can block access using CIDR subnet addresses.

Recent entries are bold.


Deny from 23.20.0.0/14
Deny from 46.51.128.0/17
Deny from 46.137.0.0/16
Deny from 50.16.0.0/14
Deny from 50.112.0.0/16
Deny from 52.0.0.0/15
Deny from 52.64.0.0/13
Deny from 54.72.0.0/13
Deny from 54.80.0.0/12
Deny from 54.144.0.0/12
Deny from 54.160.0.0/11
Deny from 54.192.0.0/10
Deny from 67.202.0.0/18
Deny from 72.44.32.0/19
Deny from 75.101.128.0/17
Deny from 79.125.0.0/17
Deny from 96.127.0.0/17
Deny from 103.4.8.0/21
Deny from 107.20.0.0/14
Deny from 122.248.192.0/18
Deny from 174.129.0.0/16
Deny from 175.41.128.0/17
Deny from 176.32.64.0/18
Deny from 176.34.0.0/16
Deny from 177.71.128.0/17
Deny from 184.72.0.0/15
Deny from 184.169.128.0/17
Deny from 185.48.120.0/22
Deny from 204.236.128.0/17
Deny from 216.182.224.0/20

This topic was formerly hosted on the forumpostersunion.com website, which now appears to be gone.

See also: Amazon EC2 Public IP Ranges

2 Jan 2015

Category:
Security

Discuss:
Comments Go Here

Write a Comment