Skip to content

icecaster/silverstripe-free-geoip-lookup-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Free geo ip service implementation for SilverStripe.


See http://freegeoip.net for details

Usage:
add this to your mysite/_config.php
Geoip::$default_country_code = FreeGeoipService::get_country_code();

Please note that the free lookup service is restricted to 1000 requests per hour,
run your own if you need more.

set static $lookup_url to the url of your service

About

lookup a visitors ip geolocation using the freegeoip webservice

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages