Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

IP Tracker


Reply


2 Posts   526 Views

Avatar
Brand

Community Member, 8 Posts

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.

Avatar
Willr

Forum Moderator, 5513 Posts

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.