How to implement reCaptcha V3 in ASP.NET
The simplest implementation: In your cshtml file (at the top) @section Scripts { <script src=”https://www.google.com/recaptcha/api.js?render=your site key”></script> <script> grecaptcha.ready(function () { grecaptcha.execute(‘your site key’, { action: ‘homepage’ }).then(function (token) { document.getElementById(“foo”).value = token; }); }); </script> } In your cshtml, inside the form (just before </form>): <input type=”hidden” id=”foo” name=”foo” /> A function inside your … Read more