The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Geo-location in CPANEL

Discussion in 'General Discussion' started by galauniver, Mar 26, 2009.

  1. galauniver

    galauniver Registered

    Joined:
    Mar 26, 2009
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    CPanel knows about IP addresses location of accessed user.

    Is it possible using some API for example PHP to get Coutry Code of a users.

    Thank you
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    If you're talking about cPanel users, you could have a script that processes /usr/local/cpanel/logs/access_log for accounts and IPs and run those IPs through a IP to Geo location script or module to produce the information you need.
     
  3. galauniver

    galauniver Registered

    Joined:
    Mar 26, 2009
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Thank you David,

    But my question not about CPanel users.

    It's about user's location who access my pages, and I want to generate different content on a page according to their location.
    Is it possible programaticaly in run time to find out country code. This statistic information avaliable in CPanle
     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,448
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
Loading...

Share This Page