Google reCAPTCHA v2 - Client Side Validation with Vanilla JavaScript

Поделиться
HTML-код
  • Опубликовано: 3 янв 2025

Комментарии • 51

  • @boutzero
    @boutzero 5 лет назад +2

    THANK YOU SO SO MUCH!

  • @soubiluv98
    @soubiluv98 3 года назад +1

    THANK YOU! Still works in 2021! I've been working on this for hours.

    • @GEEKLEAK25
      @GEEKLEAK25  3 года назад

      Glad I saved the day :D! Don't forget to watch the server side tutorial as well with vanilla PHP ;) Link in description

  • @anandinidorogomilovamusic2873
    @anandinidorogomilovamusic2873 2 года назад +1

    thank you so much! It's the best video about Google reCAPTCHA V2. The simplest working code!

    • @GEEKLEAK25
      @GEEKLEAK25  2 года назад

      Glad it was useful! Thank you for your words bro

  • @JakobSagatowski
    @JakobSagatowski 9 месяцев назад

    Still works in 2024, thank you!

  • @visualdad9453
    @visualdad9453 4 года назад +2

    thank you very much. Very well explained.

    • @GEEKLEAK25
      @GEEKLEAK25  4 года назад

      You’re most welcome. I am glad that I am able to help you.

  • @boutzero
    @boutzero 5 лет назад +1

    100% recomended ! LO MEJOR DE TODO RUclips

  • @VoxelartStudio
    @VoxelartStudio 6 лет назад +2

    Genial, estupendo, Bravo !!!
    The best tutorial to solve this problem I have found. 100% recomended !
    Thank you very much for your time and for sharing this with all us.

  • @gagangowda3190
    @gagangowda3190 10 месяцев назад

    Thank you i found it was very helpful 🎉

  • @sekirohero
    @sekirohero 2 года назад +1

    Thank you bro!

  • @angelbarajas1128
    @angelbarajas1128 3 года назад +1

    You are the best 👌

  • @VivekSingh-kv7rw
    @VivekSingh-kv7rw 3 года назад +1

    Thanks a lot...
    Finally you solved my problem.

    • @GEEKLEAK25
      @GEEKLEAK25  3 года назад

      Most welcome. Glad it worked bro

  • @wanesurf
    @wanesurf 6 лет назад +1

    Super use full ! Thank you brother

    • @GEEKLEAK25
      @GEEKLEAK25  6 лет назад

      You are welcome bro. Glad I helped!

  • @flokzzz
    @flokzzz 3 года назад +1

    amazing man

  • @felipe7guilherme
    @felipe7guilherme 6 лет назад +1

    Tks bro. Was very useful. Brazilian thanks

    • @GEEKLEAK25
      @GEEKLEAK25  6 лет назад

      De nada Felipe. Hope this was right. I’m still new to Portuguese language 😄.

    • @GEEKLEAK25
      @GEEKLEAK25  6 лет назад

      Also don’t forget to subscribe and like the video.

  • @B4rtN3ls0n
    @B4rtN3ls0n 4 года назад +1

    Thanks it works fine !

  • @all-Through-mind
    @all-Through-mind 5 лет назад +1

    Amazing !
    But.......
    how to verify for server side using XJAX ?????

    • @GEEKLEAK25
      @GEEKLEAK25  5 лет назад +1

      Thanks a lot bro.
      You can watch my other tutorial. But I used PHP. Hope it helps you. And don’t forget to subscribe 😊.

    • @all-Through-mind
      @all-Through-mind 5 лет назад +1

      @@GEEKLEAK25 Thanks! Very good work(I like it)

  • @DavidFreid42
    @DavidFreid42 4 года назад +1

    Heck yes, thank you brother

  • @webmarketing1252
    @webmarketing1252 6 лет назад +1

    The bots just can´t remove the attribute from the submit button?

    • @GEEKLEAK25
      @GEEKLEAK25  6 лет назад

      It can because this is only a client side validation. If you want it to be impossible for bots to manipulate your code you have to add server side validation as well. I’ll be creating two other tutorials for server side validation; one with Node.JS and the other with vanilla PHP very soon. So stay tuned and don’t forget to subscribe.

    • @webmarketing1252
      @webmarketing1252 6 лет назад

      Thanks for your response, yes, i guess so.
      I´m working with a form submission using Craft CMS, with some internal code to add a user. So, no php used. Is there a way to prevent the form submission if captcha doesn´t validate? Or maybe doesnt render the form at all...Thank you

    • @GEEKLEAK25
      @GEEKLEAK25  6 лет назад

      So I googled some resources for CraftCMS compatibility with google reCAPTCHA and found these links. I recommend you go through in the following order
      1. craftcms.stackexchange.com/questions/20070/integrate-google-recaptcha-into-contact-form-plugin
      2. straightupcraft.com/craft-plugins/?q=spamp&#
      3. github.com/aberkie/craft-recaptcha
      Make sure to read the first reference’s question, answers and comments carefully.
      I think those links should be helpful enough and give you the clues to solve your problem. Hope I helped 😊.

  • @mochammadrevaldi1790
    @mochammadrevaldi1790 3 года назад

    not working for me. data-callback not working

    • @GEEKLEAK25
      @GEEKLEAK25  3 года назад

      Can you please clarify the error?
      EDIT:
      I have added a GitHub repo link in the description section, so please download the code and try again. If the issue is still persistent, feel free to open an issue on GitHub.
      Please watch the other tutorial (the link is in the description section of the video as well), It'll help you validate on both server and client sides with Vanilla PHP.
      Thank you

  • @a-thonewin
    @a-thonewin 6 лет назад +1

    Thank you Brother!

    • @GEEKLEAK25
      @GEEKLEAK25  6 лет назад

      You’re welcome. Glad I helped

  • @anuragrai4916
    @anuragrai4916 4 года назад

    How to publish site from a local storage to localhost... Every time I open my html page it has domain of file:///E:/AssignmentSE/Form.html and not localhost.. please help

    • @SiriusIAlpha
      @SiriusIAlpha 4 года назад +1

      try to code using Visual Studio. Once you install it on the left side you will see an extension button click on it and search for a Live Server and install prntscr.com/uy5ueo ... then at the bottom of Visual Studio you will see 'GoLive' just click on it and it will open localhost for you prntscr.com/uy5w7s
      I have provided screenshots

  • @everafter2611
    @everafter2611 5 лет назад

    How do you do it with WordPress

  • @tamaranamuncura4032
    @tamaranamuncura4032 5 лет назад +1

    Thank you

    • @GEEKLEAK25
      @GEEKLEAK25  5 лет назад

      You are welcome. Don’t forget to watch the other tutorial using server-side validation :)

  • @mitravindgarg5372
    @mitravindgarg5372 6 лет назад

    Do we need to validate the captcha using private key ?

    • @GEEKLEAK25
      @GEEKLEAK25  6 лет назад

      No, you don’t have to. Unless you’re doing it server-side

  • @mitchelline
    @mitchelline 5 лет назад +2

    Bots can make direct requests to your website without clicking any buttons, so this is not secure at all. Only the average non-tech user does not understand how this can be bypassed
    Despite that, the video was great and explained very well what was going on

    • @GEEKLEAK25
      @GEEKLEAK25  5 лет назад +2

      I completely agree. The reCAPTCHA is only used to prevent bots from bloating your DB with spam data. And this can be bypassed as well. reCAPTCHA is only one of many ways for securing POST requests. You’ll also have to sanitize, disallow some characters, and decode data inserted into your DB especially in the case of SQL DB. These are just few of many other ways. So glad I was able to explain it, and more happy to help you with my explanation. Thank you 😊
      I also have another video on my channel for verifying reCAPTCHA using server-side validation using vanilla PHP. The code is also available on GitHub. Don’t forget to check it out!
      The server-side tutorial:
      ruclips.net/video/oJzGpDbeSuA/видео.html

  • @creativecontent923
    @creativecontent923 4 года назад

    So give me strong method