I want to DROP more than 200 requests per ip to prevent ddos attack. this is command that i used to detect requests count per ip :
netstat -alpn | grep :80 | awk '{print $5}' |awk -F: '{print $(NF-1)}' |sort | uniq -c | sort -nr
now i want add all ip addresses that made more than 200 requests into IPtables to DROP input and out put.