How do I retrieve the visitor's ISP through PHP?

后端 未结 15 1473
暖寄归人
暖寄归人 2020-12-01 11:17

How do I find out the ISP provider of a person viewing a PHP page?

Is it possible to use PHP to track or reveal it?

If I use something like the following:

15条回答
  •  一向
    一向 (楼主)
    2020-12-01 11:59

    Why not use ARIN's REST API.

    
    Handle: {$result->net->handle->{'$'}}
    Ref: {$result->net->ref->{'$'}}
    Name: {$result->net->name->{'$'}}
    echo "OrgRef: {$result->net->orgRef->{'@name'}}";
    
    END; // eof

    https://www.arin.net/resources/whoisrws/whois_api.html

提交回复
热议问题