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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

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

IP Tracker


Go to End


2 Posts   1583 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, 5523 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.