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

后端 未结 15 1492
暖寄归人
暖寄归人 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:58

    If all these answers are not useful then you can try API way.

    1.http://extreme-ip-lookup.com/json/[IP ADDRESS HERE]

    EXAMPLE: http://extreme-ip-lookup.com/json/106.192.146.13

    2.http://ip-api.com/json/[IP ADDRESS HERE]

    EXAMPLE: http://ip-api.com/json/113.14.168.85

    once it works for you don't forget to convert JSON into PHP.

提交回复
热议问题