10808 Posts in 2494 Topics by 1782 members
|Go to End|
27 February 2013 at 2:02am
I am looking for a module who can integrate an ip-lookup for visitors and log this. Ideal is when it is dynamic, but if it is handwork I can live with that. Is there somebody who likes to work on this? If so, I am interested to participate.
28 February 2013 at 9:05pm
The archaic stats module http://www.silverstripe.org/statistics-module/ will log IP addresses of all your users. For country lookups I've used hostip.info in the past, easy and quick to include for country based look ups ($location = file_get_contents("http://api.hostip.info/get_html.php?ip=". $_SERVER['REMOTE_ADDR']));
Logging visitors to your standard MySQL database is not optimal from a scale point of view (which is why the stats module got dropped) so be careful.
|Go to Top|