Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Winnie 7 posts 97 karma points
    Mar 14, 2023 @ 08:46
    Winnie
    0

    Custom Form Spam Prevention

    Does anyone know how I can prevent spam on a custom-built form?

    I am on Umbraco 11, and everything I can find is for much older versions or Umbraco Forms, but maybe I am just being overly cautious since I've only been working with Umbraco for a few weeks.

    I would greatly appreciate it if anyone could point me in the right direction. Do you need to see my code?

  • Lewis Smith 211 posts 620 karma points c-trib
    Mar 14, 2023 @ 09:23
    Lewis Smith
    0

    Hi Winnie,

    Firstly, welcome to the world of Umbraco, having only been working with it for a few weeks! You've found the correct place to ask questions!

    When you say custom built forms, do you mean you have a form or @using(Html.BeginForm in a cshtml page? If so, you could use google recaptcha, some docs are here https://developers.google.com/recaptcha/intro

    If youre using Umbraco Forms, then you can also use google rechapcha, there are a few packages that may be supported, check out the 'packages' page at the top of this page, and head over to the docs. https://docs.umbraco.com/umbraco-forms/editor/creating-a-form/fieldtypes/recaptcha3 should get you started, just make sure you check what version of Umbraco you have installed and what youre doing matches this version.

    Lewis

Please Sign in or register to post replies

Write your reply to:

Draft