How to disable ping?

I want to disable ping response all the time
the following commands work not work

echo “1” > /proc/sys/net/ipv4/icmp_echo_ignore_all