Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Mar 2009
    Posts
    2

    Default Geo-location in CPANEL

    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. #2
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by galauniver View Post
    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
    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. #3
    Registered User
    Join Date
    Mar 2009
    Posts
    2

    Default

    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. #4
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,892
    cPanel/Enkompass Access Level

    Root Administrator

    Lightbulb

    Are you speaking of something like Geo Targeting?
    http://en.wikipedia.org/wiki/Geo_targeting

Similar Threads & Tags
Similar threads

  1. Does cPanel support geo-DNS?
    By SoftDux in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 04-10-2011, 09:41 AM
  2. Website geo-load-balancing
    By florinpatan in forum Optimization
    Replies: 1
    Last Post: 11-23-2010, 10:50 AM
  3. cPanel login location
    By Farting Santa in forum New User Questions
    Replies: 1
    Last Post: 02-15-2010, 04:14 AM
  4. .htaccess location on cpanel
    By spainhighlander in forum New User Questions
    Replies: 2
    Last Post: 04-26-2007, 04:18 AM
Tags for this Thread
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube