Skip to main content
Participating Frequently
March 21, 2018
Answered

possible to capture form submitters IP during form submission?

  • March 21, 2018
  • 5 replies
  • 572 views

Is there a way to capture a form submitter's IP address and include it in an email that is generated upon form submission?

I wonder if this would be possible on either the client or server side.

    This topic has been closed for replies.
    Correct answer WolfShade

    One thing that I like to do is load the page without a CAPTCHA, then use Javascript or jQuery to create the CAPTCHA elements and insert them into the DOM five seconds after page load.  If the bot doesn't see it and fills out a form and sends it before the five seconds pass, then the CAPTCHA doesn't exist.  I just check for the CAPTCHA in the form - if it's not there, process nothing but give a success message to make it think it was successful.

    HTH,

    ^ _ ^

    5 replies

    WolfShade
    Legend
    March 21, 2018
    Jon Fritz
    Community Expert
    Community Expert
    March 21, 2018

    To add to the previous answers, it can be done, but there's nothing built into DW that can do it for you with the point and click interface, it would need to be hand-written.

    WolfShade
    Legend
    March 21, 2018

    Wait.. do you want the public IP, or the private IP if it's behind a NAT?

    V/r,

    ^ _ ^

    Nancy OShea
    Community Expert
    Community Expert
    March 21, 2018

    Form submission is carried out by the server on which the form resides, no?  So how would capturing your server's IP address be of any value to you?

    Nancy O'Shea— Product User & Community Expert
    Participating Frequently
    March 21, 2018

    Nancy,

    Somehow a spammer got around a Google reCAPTCHA form.

    It looks like the server side scripting language has a variable to capture the remote address so I added it to the generated email on the server script.  I realize this might not be extremely helpful since I assume spammers have ways around true detection but I felt it was worth a try.

    So far the separate form using the Math question CAPTCHA has not been spammed but it is early into testing.

    Nancy OShea
    Community Expert
    Community Expert
    March 21, 2018

    https://forums.adobe.com/people/Johnny+the+boy  wrote

    Nancy,

    Somehow a spammer got around a Google reCAPTCHA form.

    Not much anyone can do about human spammers. 

    Nancy O'Shea— Product User & Community Expert
    WolfShade
    Legend
    March 21, 2018

    I know it can be done with a server-side language like ColdFusion (cgi.remote_addr).  Not sure if that can be done in JavaScript.

    V/r,

    ^ _ ^