geo ip

This topic contains 3 replies, has 3 voices, and was last updated by  Stiofan O’Connor 9 years, 6 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #18937

    pawon
    Free User
    Post count: 34

    Hi,

    I noticed in the sourcecode the existense of your ‘geodata’ service, which returns the geo info for an ip address (like geoplugin_city, lat, long, etc.

    Through my browser it’s working fine, but through my custom Widget, I get 403 errors (most of the time, sometimes it’s working)

    Am I getting blocked and is this not supposed to be used?

    Thanks
    Carsten

    #18977

    Paolo
    Site Admin
    Post count: 31206

    Hi Pawon,

    not sure what’s wrong here. Too little information to give you a straight answer.

    The only thing I know is that you should be able to use GeoLocation data without getting blocked.

    If you give us more details, we can maybe help you debug your custom code.

    Thx

    #18996

    pawon
    Free User
    Post count: 34

    Hi Paolo

    Thanks for your relply.

    I use the following code:

    
    
    		$ip = $_SERVER['REMOTE_ADDR'];
    		$addr_details = unserialize(file_get_contents('http://www.geoplugin.net/php.gp?ip='.$ip)); 
    		$mylat = stripslashes(ucfirst($addr_details[geoplugin_latitude]));
    		$mylon = stripslashes(ucfirst($addr_details[geoplugin_longitude]));

    Taken from listing_filters.php around line 70.

    It’s working fine most of the time. Just at times I keep getting a 403 error (while it still when I visit the url in my browser)

    thanks
    Carsten

    #19055

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    hi Carsten, this code is currently not in use, an old dev must have been trying it out but i would not use that service, i would just use google’s api.

    Stiofan

Viewing 4 posts - 1 through 4 (of 4 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket