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

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

    EDIT: This method no longer works since the website it hits now blocks automatic queries (and previously this method violated the website's terms of use). There are several other good [legal!] answers below (including my alternative this this one.)


    You can get all those things from the following PHP codings.,

    (.*?)<\/th>(.*?)<\/td>/s',$url,$output,PREG_SET_ORDER);
      $isp=$output[1][2];
      $city=$output[9][2];
      $state=$output[8][2];
      $zipcode=$output[12][2];
      $country=$output[7][2];
    ?>
    
      
    ISP :
    City :
    State :
    Zipcode :
    Country :

提交回复
热议问题