• Login
  • Register

DNN Forums

A community discussion page. We're starting from scratch, so...let's get the party started!

Recaptcha V3

You are not authorized to post a reply.
Page 1 of 212 > >>

New Member

New Member

    I've got a html form that switches the default form to post to an Act-On form URL.

    <button class=&quot;btn btn-primary&quot; id=&quot;BtnDownload&quot; onclick=&quot;this.form.action=&#39;https://www1.mcs.co.uk/acton/eform/13678/6fef53fe-8abf-4547-8168-151c33d84cf0/d-ext-0003&#39;;&quot; style=&quot;margin-left:15px;&quot; type=&quot;submit&quot;>Submit</button></p>

    This works fine.


    Unfortunately, it is getting a lot of spam and I want to add a Google Recaptcha V3 and don't know to to go about it. Adding the google recaptcha client site script will be easy but how will I add the server side script.

    Has anyone any experience of doing this?



    Veteran Member

    Veteran Member

      Can you please provide some more details about where and how you're trying to add this?
      Will Strohl

      Upendo Ventures Upendo Ventures
      DNN experts since 2003
      Official provider of the Hotcakes Commerce Cloud and SLA support

      Basic Member

      Basic Member

        You really only have two options in this case when you are using a third-party such as Acton.

        1.) If acton supports it, you can configure the Recaptcha on their side.
        2.) You can create a custom DNN Extension that will actually accept the form, and validate the Recaptcha, and then send the data on to Acton from the server side.

        However, there isn't any easier way since you need to add code on the server side to handle Recaptcha
        Mitchel Sellers
        Technology Advisory Group Leader
        CEO @ IowaComputerGurus, Inc. a DNN & .NET Solutions Provider
        Technical Blog: MitchelSellers.com

        Advanced Member

        Advanced Member

          What if you think about what you want to accomplish instead of how?
          You don't want spam. Did you try to create a honeypot? Personally, I use ActionForm for this where I have :
          1. a field that is not visible for humans
          2. if that field is filled with whatever, the submit button is removed with regex in the binding like !=''

          Robots see the field and will try to fill that with their crap and this is the trigger to not show the submit button
          Tjep's digital agencyRegards,
          Tycho de Waard

          Tjep's digital agency
          We just love DNN

          New Member

          New Member

            Thanks for the reply guys.
            There is already a honeypot included in the form which worked for about 12 months but the spammers seem to have realised and are now bypassing.
            Act-On do support a captcha on their form but in this instance we are not using an iframe but we post the values from our html form in DNN to their form and thus we cannot place a Captcha on their form but not on ours. We need to place the Captcha on the DNN side and not on theirs. So my conclusion matches Mitchell's option 2 which is to make a small extension with the form embedded with a Google Recaptcha V3 and then we can handle the server side response from Google.

            Has anyone any sample code on how to handle this in my extension ?
            You are not authorized to post a reply.
            Page 1 of 212 > >>

            These Forums are dedicated to discussion of DNN Platform.

            For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

            1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
            2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
            3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
            4. No Flaming or Trolling.
            5. No Profanity, Racism, or Prejudice.
            6. Site Moderators have the final word on approving / removing a thread or post or comment.
            7. English language posting only, please.

            Would you like to help us?

            Awesome! Simply post in the forums using the link below and we'll get you started.

            Get Involved