So far, I have been manually adding C-class IP address ranges to the IIS disallow list, ie; 101.22.32.0 / 255.255.255.0.
I would essentially like to add all the AWS IP address ranges found here: EC2 Public IP Ranges and would like to know of a good way of adding these all to the deny list.
If having to do these manually, how would I add the ranges: 50.19.0.0/16 (50.19.0.0 - 50.19.255.255)?
I was also thinking I could edit the XML config file for this - where does it reside (if this is a better idea)?
-- UPDATE --
My server is using an AWS EC2 instance, and from what I have read, the security groups only "allow" ip addresses, excluding all others. So, is setting this up in IIS the best idea or is there another more efficient way of accomplishing this?
Thanks.