How to disable ping request?

If you are looking for the  steps to disable ping. Please find the steps below.

Run the following command to disable ping request to your server.

echo "1" > /proc/sys/net/ipv4/icmp_echo_ignore_all

You can also do the same using IPtables. Please run the below command if you want to disable the ping request using IPtables.

iptables -A INPUT -p icmp -j DROP
 

Was this answer helpful?

 Print this Article

Also Read

Secure system using "mod_security".

Follow the below steps to install “mod_security”. ModSecurity supplies an array of...

How to hide your PHP version information?

Like Apache, it is not good to expose your PHP information to the public. Please follow the below...

How to Prevent Symlink Attacks

ad Impact of Symlink - Suppose you own a small hosting company with a Linux Box, & 1337...

How to Prevent DDOS with CSF

You just need to configure two csf directives, thats it. The two directives are PORTFLOOD and...

Prevent DDoS by using mod_evasive

“mod_evasive” is an evasive maneuvers module for Apache to provide evasive action in...