Record ip address with form submission
2 posts by 2 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: April 30, 2019 (RSS)
By JeffC - April 28, 2019
Hi
I've got a form that every now and then gets hit with spam submissions. My solution has been to log in to cpanel to find the offending ip address and block it in the htaccess file.
Is there a way of recording the ip address of each form submitted? I notice that when purchasing cmsb you log the ip address to stop license abuse - what do you have in place to make this possible?
Thanks
Jeff
By daniel - April 30, 2019
Hi Jeffncou,
A visitor's IP can be accessed through the global variable "$_SERVER['REMOTE_ADDR']" - if you're saving a record on form submission, you should be able to fairly simply add a new field to the section and then supply this value.
Let me know if you have any questions!
Thanks,
Daniel
Technical Lead
interactivetools.com
Technical Lead
interactivetools.com