Nice but i still prefer hw firewallin there ***** lol.
This will only disconnect the socket of ip banned but they can still make new connections to sockets and spam your login anyway which just eats up memory of your server.
I used something like this before and got stupid kids that still hit space enter space enter space enter ect ect spammin the **** out of the server even though it said banned,It still creates unnesessary stress to the server.
The most effective way to get rid of them is firewall them