PHP: Detect the Internet Service Provider (ISP)

Discussion in 'PHP' started by Javver, Oct 22, 2009.

  1. #1
    Hi,

    I would like to know how to detect the ISP of the visitor thru PHP code? It should display like...

    Ex.

    Your ISP: SBC Global

    Any help would be much appreciated.
     
    Last edited: Oct 22, 2009
    Javver, Oct 22, 2009 IP
  2. mastermunj

    mastermunj Well-Known Member

    Messages:
    687
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    110
    #2
    mastermunj, Oct 22, 2009 IP
  3. Javver

    Javver Active Member

    Messages:
    72
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    91
    #3
    thanks, is there any free db like the one in hostip.info?
     
    Javver, Oct 22, 2009 IP
  4. mastermunj

    mastermunj Well-Known Member

    Messages:
    687
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    110
    #4
    hostip.info also seems a good free option as far as ISP detection is concerned. Why don't you try their free API and data to figure out how it is working??
     
    mastermunj, Oct 22, 2009 IP
  5. Javver

    Javver Active Member

    Messages:
    72
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    91
    #5
    i use to have that code before (detect ISP thru PHP) but i cant remember where i get it. it displays like isp.domain.com
     
    Javver, Oct 22, 2009 IP
  6. mastermunj

    mastermunj Well-Known Member

    Messages:
    687
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    110
    #6
    try evaluating one of above to and do google meanwhile other members will also give in their suggestions..
     
    mastermunj, Oct 22, 2009 IP
  7. theapparatus

    theapparatus Peon

    Messages:
    2,925
    Likes Received:
    119
    Best Answers:
    0
    Trophy Points:
    0
  8. kind_of_the_cash

    kind_of_the_cash Active Member

    Messages:
    852
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    85
    #8
    I think you can find IP ranges of country's (ISP's) Then write script
     
    kind_of_the_cash, Oct 22, 2009 IP
  9. Javver

    Javver Active Member

    Messages:
    72
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    91
    #9
    thank you guys for your help

    :)

    i will come back if i have questions
     
    Javver, Oct 22, 2009 IP
  10. shortcut

    shortcut Peon

    Messages:
    116
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Using maxmind we can detect country and city. What about ISP ?
     
    shortcut, Oct 23, 2009 IP
  11. mastermunj

    mastermunj Well-Known Member

    Messages:
    687
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    110
    #11
    maxmind has database for ISP as well. visit the link i have provided.
     
    mastermunj, Oct 23, 2009 IP