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

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

    GeoIP will help you with this: http://www.maxmind.com/app/locate_my_ip

    There is a php library for accessing geoip data: http://www.maxmind.com/app/php

    Attention though, you need to put the geoip db on your machine in order to make it work, all instructions are there :)

提交回复
热议问题