IMO when you block IP this can just slow a hacker you must ban his all ip rage addres In my cauntry a ISP called NEOSTRADA has a ip changing system so you can ban them but they will get a new on ip.
Secundo better prevent than fix IMO try to get a man to make better MuGuard system