Identifying site visitors with no IP address

I see traffic come through all the time from Paris France and China like this. Here is an example:

https://www.ip-tracker.org/locator/ip-lookup.php?ip=hn.kd.ny.adsl

apparently he is in Shangai. I’ve also looked at all these:

https://community.sophos.com/utm-firewall/f/network-protection-firewall-nat-qos-ips/39664/top-hacker-hn-kd-ny-adsl

is there any way to stop MOST of this without restricting people in every country who would be interesting in contacting the site owner who is the victim of stuff like this?

Take a look at the FILTER_VALIDATE_IP filter extensions for php.
There are many filters

$ip = “74.6.136.150”;

if (filter_var($ip, FILTER_VALIDATE_IP)) {
echo("$ip is a valid IP address");
} else {
echo("$ip is not a valid IP address");
}

You can find out what filters are available in your php installation with:

foreach (filter_list() as $id =>$filter) {
echo ‘ ’ . $filter . ‘ ’ . filter_id($filter) . ‘ ’;
}

thanks much! I will do this.

Sponsor our Newsletter | Privacy Policy | Terms of Service