DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

Add captcha to form

Sort:
You are not authorized to post a reply.





New Around Here





    Hi,

    I've got a DNN 9.13 site: I need to add a captcha (the basic version where user insert a text from an image is good too). What is the best way to do?

    I read this post: Recaptcha V3 - DNN Open Source Community - Forums - Using DNN (dnncommunity.org) , but is still valid (year 2019)?

    This is my test after some googling time, I edit my .ASCX file and add

    <%@ Register TagPrefix="dnn" TagName="Label" Src="~/controls/LabelControl.ascx" %>
    <%@ Register TagPrefix="dnn" Assembly="DotNetNuke" Namespace="DotNetNuke.UI.WebControls"%>

    <div id="divCaptcha" runat="server" class="dnnFormItem">
        <dnn:label id="plCaptcha" controlname="ctlCaptcha" runat="server" />
        <dnn:captchacontrol id="ctlCaptcha" captchawidth="130" captchaheight="40" runat="server" errorstyle-cssclass="dnnFormMessage dnnFormError" />
    </div>

    If I insert a wrong captcha code, I receive an error UI message. How can check the captcha validity in server side after a submit post?

     

    Thanks,

    progmr






    Senior Member





      You could indeed integrate with and use the built-in CAPTCHA control, if you wish.  However, this feature hasn't been updated in many years and other third-party CAPTCHA controls do a far better job. 

      When integrating the third-party CAPTCHA controls, you generally can just follow their instructions on how to integrate it into your DNN extension.  Most often, their instructions work just fine without requiring any workarounds that often can be required when building plugins for platforms like DNN.   






      Veteran Member





        Posted By Will Strohl on 5/2/2024 11:37 AM

        You could indeed integrate with and use the built-in CAPTCHA control, if you wish.  However, this feature hasn't been updated in many years and other third-party CAPTCHA controls do a far better job. 

        When integrating the third-party CAPTCHA controls, you generally can just follow their instructions on how to integrate it into your DNN extension.  Most often, their instructions work just fine without requiring any workarounds that often can be required when building plugins for platforms like DNN.   

        Will, I am curious to hear your thoughts on someone updating the DNN core functionality to utilize a modern CAPTCHA solution (e.g., reCAPTCHA v3). 

        Furthermore, I wonder if there is anyone that would be willing to sponsor such an enhancement.

        I realize maintenance is always a concern for DNN Platform, but leaving this legacy CAPTCHA in place feels a bit irresponsible.  Thoughts?

        David Poindexter


        Creator:







        Senior Member





          I've always been a fan of this idea.  It comes back up as a topic every few years.  Though, I was always a fan of maybe making it a provider, instead, with the default being ReCAPTCHA.  There are a lot of alternatives out there.  I've created a few different work items for this over the years, depending one which "tracker" we were using at the time.  It always gets deleted after it goes stale, but it will come back again, eventually...  






          Veteran Member





            I agree that this could have been updated as the current Captcha does not help a lot and has issues (One character missing in the image IIRC)
            A provider would be nice, but replacing the current one with ReCAPTCHA would fine too IMO.






            Veteran Member





              Do you all know anyone that may be willing to sponsor (even if a little bit) such an improvement to DNN Platform? If so, I may be able to handle this after the initial release of DNN 10.

              David Poindexter


              Creator:







              Senior Member





                I don't, currently.  But, I'm also a bit distracted with projects right now to think of anyone specific. 🤔 






                New Around Here





                  Thanks for all suggestions: I decide to use Cloudflare CAPTCHA
                  You are not authorized to post a reply.

                  These Forums are dedicated to the 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. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
                  2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
                  3. 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.
                  4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
                  5. No Flaming or Trolling.
                  6. No Profanity, Racism, or Prejudice.
                  7. Site Moderators have the final word on approving / removing a thread or post or comment.
                  8. 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