Home > Net >  I want to record my server how many times was ping using php script
I want to record my server how many times was ping using php script

Time:12-22

I want to record my server how many times was ping using php.

if someone is trying to ping my server i want to store it for record.

is there any way to record using PHP script

ping example.com/index.php

using php script index.php i want to record how many times i was ping

CodePudding user response:

There is not any available user ability responsible for responding to pings. Pings sends ICMP echo packets and will received and process by the kernel's networking stack.

CodePudding user response:

In short, you cant. I suggest you read more about what ping is (https://en.wikipedia.org/wiki/Internet_Control_Message_Protocol) and then why you can't intercept ping handling without network stack changes What network layer handles responding to pings?

  • Related