Support

Home Forums Event Espresso Premium IP Address from registrant?

IP Address from registrant?

Posted: April 1, 2013 at 12:21 pm


dgreen

April 1, 2013 at 12:21 pm

I’m starting to see a lot of bogus registrations for one of our events. I’d like to determine where they are coming from. Does EE record the IP address information somewhere when a person registers?


Sidney Harrell

April 1, 2013 at 3:03 pm

No, currently we do not log the ip address of the registrant. What you can do is open up registration_page.php (you should copy both registration_page.php and registration_page_display.php from plugins/event-espresso/templates over to uploads/espresso/templates before making any changes) and change line 15 to do_action('action_hook_espresso_log', __FILE__, __FUNCTION__, $_SERVER['SERVER_ADDR']);
Then under Event Espresso -> General Settings -> Advanced Features -> Optional Event Settings look for “Use full logging?” and turn it to “Yes”.
Then you should be able to correlate the ip address that will appear in the logs with the registrant information that will appear right after the ip address entry.


dgreen

April 2, 2013 at 2:44 pm

I’ve added the code and now see the IP address in the log. Thank you for the help!

I’d like to request a potential future feature: to include the IP address as part of the registration details so it shows up on screen as part of the registration (instead of combing log files).

Thanks again!


dgreen

April 6, 2013 at 11:27 pm

A quick follow-up on this; in order to log the correct ip address, you need to put REMOTE_ADDR instead of SERVER_ADDR. (SERVER_ADDR logs the hosting provider server IP address)

The support post ‘IP Address from registrant?’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso