Page 1 of 1

Finding IP address of user

Posted: Fri Feb 24, 2012 3:32 pm
by audiodef
How can I find the IP address of a registered user? I want to track down a suspicious bit of activity on a web site I run of a very sensitive nature.

Re: Finding IP address of user

Posted: Sat Feb 25, 2012 3:23 am
by toivo
You need a user plugin which is triggered by the onUserLogin event: http://docs.joomla.org/Plugin/Events/User#onLoginUser. This plugin can record the value of the server variable $_SERVER['REMOTE_ADDR'] to a text file or a database table.

On the other hand, there are extensions which track the IP address of the users: http://extensions.joomla.org/extensions ... s/visitors

Re: Finding IP address of user

Posted: Mon Feb 27, 2012 1:30 am
by audiodef
Thanks! :)