How to Disable Ping

Change the following value to 1 in the file /etc/sysctl.conf  and run the command  sysctl -p from the command line

net.ipv4.icmp_echo_ignore_broadcasts = 0