Developer forum

Forum » Development » Log IP and referring URL in form-data?

Log IP and referring URL in form-data?


Reply
Hi

I'm coding a number of campaign-landingpages for a client - forms, basically. I need to log the IP-adress as well as the referring URL of each lead along with the submitted form-data. Is there any way to do that? I'm kinda hoping for dynamic tags or a piece of javascript I can add to the form as a hidden field...

Thank you for your help!

Cheers

Hans

Replies

 
Reply
Hello,

If you're using the "DataManagement: Forms" module then you can write a FormSaveProvider which will additionally store client IP address (for example using HttpContext.Current.Request.UserHostAddress).

You can read more about DataManagement Extensibility here:
http://engage.dynamicweb-cms.com/Admin/Public/Download.aspx?File=Files%2fFiler%2fDocumentation%2fDevelopment%2fModules%2f(en-US)+Data+Management+Extensibility+API.pdf

- Pavel

 

You must be logged in to post in the forum