LOIC/HOIC flood programm protect this mikrotik router

I have this problem, my work at flooditakse and log will look like to the UDP flood the CPU at 100% and this name of program which can handle is LOIC/HOIC, how could this section that does not interfere with Internet work
Is a kind of therapy for this also?

Help and thanks for all