Max conncections

I want the Mikrotik to limit or shut off an IP that has exceeded a certain number of simultaneous flows or connections. This would limit the damage caused by some viruses and trojans. Is this possible and how.
:question:

Yes, there is connection-limit parameter in the firewall:

add action=reject protocol=tcp src-address=10.0.0.188/32 connection-limit=50

This pasthrought 50 connections and rejects all over.