I have nginx running behind ELB which points to application Uwsgi.
I want to ban IP's based on there request frequencies.
After digging on the topic I found out that I need to use WAF for this.
I can block IP's manually.
Now I want to automate this.
I want to read IP's from the nginx logs or maybe use fail2ban and then somehow update the WAF IP list to block those IP's.
My problem is I dont know how to do this Somehow update the WAF IP list part. I cant find boto implementations tutorial or any other way to do this.
I am sure their must be a way.
can anyone guide me.