Last update at :2024-06-12,Edit by888u
When we use shared hosting, some hosting providers' product IPs will see the data "timed out" after we PING. In view of space security considerations, the host company has considered prohibiting us from conducting PING command test data, and most of them still allow PING. If we are managing our own Linux vps hosting product, we can freely set whether our VPS product prohibits PING IP.
Some netizens say that prohibiting PING is not friendly to the search engines of the website. There is not much research on the specific snail. I feel that it should not be a big problem. It depends on our own use.
The first method, we can modify the file:
/proc/sys/net/ipv4/icmp_echo_ignore_allEdit this file, the default should be 0, we change it to 1 to disable PING. If you need to restore, continue to change it to 0, and then restart the VPS.
The second method, we solve it directly through commands:
sysctl -w net.ipv4.icmp_echo_ignore_all=1sysctl -pForbidden command.
sysctl -w net.ipv4.icmp_echo_ignore_all=0sysctl -pRestore ban.
The command settings will take effect directly without restarting the VPS.
Recommended site searches: Dongguan server, domain name check, Changsha server hosting, Hong Kong server purchase, query domain name, registration-free cdn acceleration, asp free space application, website domain name registration, domain name registration, vps server,
发表评论