security - How to ban IP addresses dynamically on Amazon AWS, with firewall? -
i ban ip addresses dynamically, when software detects malicious activity (hitting 10 page in row in 10 second or specific useragent or ), creates ".txt" file blacklisted ip-s.
i have 4 ways go:
- ban ip firewall, not reach ec2 instance, nor s3.
- create .htaccess rewritemap, ip list, ban them httpd.conf
- ban ip @ begining of php reading ip list .txt file (no need connect mysql, feel safer).
- ban ip @ begining of php, reading ip list mysql.
obviously, first 1 ideal, there way accomplish that? unfortunately, new amazon aws.
you use aws sdk such boto
or command line tools update security groups , s3 iam policies on fly, accomplishing option #1. check out sdk docs more information.
Comments
Post a Comment