address blocking from PING

Hi,
I would like to configure a rule or script in order to not respond to ping from WAN and this IP address was automatically added to the list of blocked addresses. Port scanning, RDP, etc. were blocked