Using reCAPTCHA in React and Node

Sdílet
Vložit
  • čas přidán 5. 09. 2024

Komentáře • 113

  • @user-st4qv2vw7q
    @user-st4qv2vw7q Před 3 lety +5

    This is still the best tutorial on reCAPTCHA thus far in 2021! Thanks!

  • @xNReaperx
    @xNReaperx Před 4 lety +10

    Top tier explanation 🌟- You are wonderful teacher. I love you explain the differences and gave a reason why people use v2 vs v3

    • @leighhalliday
      @leighhalliday  Před 4 lety

      Thank you Nhat! I really appreciate the kind words and support.

  • @brennanflentge2957
    @brennanflentge2957 Před 3 lety +3

    Took me forever to find a quality video. Thank you for taking the time to explain everything. It really helps and you earned a new subscriber.

  • @XempegeX
    @XempegeX Před 2 lety

    Thank you so much for this video. I couldn't understand 20 other videos that talk about how you get the token, but nothing what is it for and how to use it. Really appreciate it!

  • @maestro1010
    @maestro1010 Před 3 lety +1

    Came for the reCAPTCHA tutorial, learned how async functions work. Brilliant explaining!

  • @mustafa-ahmed-dev
    @mustafa-ahmed-dev Před rokem

    Thank you so much.
    I work in a company and we got attacked, and you saved us

  • @theayush18
    @theayush18 Před 2 lety

    The best tutorial, searched everywhere but could not know how to do that, Thanks a lot

  • @vdchnsk
    @vdchnsk Před 3 lety +1

    ty , the most useful guide of using recaptcha in NextJS I've ever seen

  • @ChristopherPhillipsDev

    I started implementing this on my own but was put off by the horrid checkbox so I was looking for the "invisible" approach. Going to walk through this tomorrow but wanted to thank you for your work! Fingers crossed I have the same success you did.

  • @BanukaVidusanka
    @BanukaVidusanka Před měsícem

    thank you for this.
    was really helpful.
    mplemented invisible recaptcha v2 with react n nodejs successfully

  • @nikhilfadnis8009
    @nikhilfadnis8009 Před 3 lety +2

    You're the man! Just what I was looking for, thank you so much!

  • @besufekad9
    @besufekad9 Před měsícem

    Thank you for this awesome video!

  • @LIILDAZZ3
    @LIILDAZZ3 Před 2 lety

    A very helpful video! I appreciate your help towards the community

  • @neenus
    @neenus Před 2 lety

    Thanks Leigh pretty straightforward detailed and easy to follow video love it!

  • @eduardokuhn6925
    @eduardokuhn6925 Před 3 lety

    This was really helpful my friend. Thanks a lot! Subscribed.

  • @roberto9369
    @roberto9369 Před 3 lety +1

    A very well explained video man. This gonna be very helpful to complete a job in my work, xd. thanks.

  • @falsifyingdream
    @falsifyingdream Před 3 lety

    Awesome video man, I really appreciate stuff like this. Really clear, everything makes sense.

  • @ilian0002
    @ilian0002 Před 4 lety

    Oh man why I didnt know your channel when started learning react. Yo won a new subscriber today

  • @RomanH91
    @RomanH91 Před rokem

    Thank you very much! Useful!

  • @calex007
    @calex007 Před 3 lety

    Super easy to follow along, saved me lots of time. Thank you very much!!

  • @albertdugba
    @albertdugba Před 4 lety +1

    @Leigh Halliday. You take your time to explain everything. I appreciate that BUT it would also be of great benefit if you can walk us through how you code form scratch instead or at least a very minimal starter. I sometimes get confused and not able to follow much. Thanks

    • @leighhalliday
      @leighhalliday  Před 4 lety +1

      Hey Albert! It's a great point... I'll try to provide a commit before/after the live coding for those that want to follow along. It's always a balance between having something so minimal that it isn't realistic vs something so complex that it's easy to get lost in. It's something I struggle with all the time when putting these together!

  • @rakeshpk4991
    @rakeshpk4991 Před 3 lety

    Thank you for your time and effort for this amazing explanation! Subscribed.

    • @leighhalliday
      @leighhalliday  Před 3 lety

      You're very welcome, Rakesh! Glad you enjoyed it :)

  • @poatest1371
    @poatest1371 Před 4 lety

    Awsome one !! thank you very much Leigh.

  • @medi7573
    @medi7573 Před 3 lety +1

    Your videos are really helpful, and we are so thankful for you. Could you please make a video on how to add Google Analytics to the Reactjs site?

    • @leighhalliday
      @leighhalliday  Před 3 lety

      Thanks so much Me Di! Great suggestion... I'll add it to my list for something I could cover in the future.

  • @abessesmahi4888
    @abessesmahi4888 Před 4 lety

    Nice topic.
    Thank you Leigh.

  • @danielballoch6806
    @danielballoch6806 Před 2 lety

    Awesome video, thanks for the help!

  • @nitingfora8316
    @nitingfora8316 Před 3 lety +1

    const reRef = useRef() error. It says Expression expected. ts(1109)

  • @vuthysan8549
    @vuthysan8549 Před 3 lety

    Thank you very much for the amazing videos, saved lots of my times. Thank you in advance.

  • @rainstorm4161
    @rainstorm4161 Před 2 lety

    amazing tutorial, thanks a lot

  • @regisnut
    @regisnut Před 3 lety

    nice, was wondering how to secure simple contact form on my api route.

  • @user-br2mx4ke5x
    @user-br2mx4ke5x Před rokem

    Wonderful!

  • @asifinet79
    @asifinet79 Před 2 lety

    Right to the point.

  • @petarkolev6928
    @petarkolev6928 Před 3 lety

    Awesome video, m8! Thank you

  • @mega_info
    @mega_info Před 4 lety

    Thanks man (Y) ... This is the best video of Google Recaptcha on the youtube. Can you please brief me how to use check recaptcha instead of invisible.

    • @leighhalliday
      @leighhalliday  Před 4 lety

      Thank you Kashif! Honestly I haven't tried it before... I could take a guess, but why don't you give it a try and see what sorts of issues you run in to. That's honestly the best way to learn!

    • @ilian0002
      @ilian0002 Před 4 lety

      On recaptcha form use only sitekey and onsubmit. Attach function to onsumbmit with property value and this property will be generated when submitting. Then you can send it to the backand and there try it via google if it's ok.

  • @mati124
    @mati124 Před 3 lety +1

    Is there easy way I can use onChange, onBlur etc with useForm?

  • @viniciusdesouza2779
    @viniciusdesouza2779 Před 3 lety

    It helped me a lot

  • @ananikoleishvili1053
    @ananikoleishvili1053 Před rokem

    Hello, thank you for the video. I saw you were getting cross-site cookie warnings as well. They do not have sameSite attribute set and they are generated by google and I can't change their attributes. Is that correct? How can I solve this problem?

  • @indestructible-today
    @indestructible-today Před 3 lety

    This was amazing. Thanks a lot.

  • @stormwaker
    @stormwaker Před 2 lety

    6:08 could someone tell me what did he click to auto format ReCAPTCHA component nicely like that?

  • @riyasaatahmedrahul8489

    Hey, very nice content. I was facing a problem. I have reCAPTCHA on 3 separate pages. They appear perfectly on the first load. But they disappear when I navigate to another page and then re-navigate back to that page (the one having the captcha) again. My application is a single-page application. I'm using next/link to navigation from one page to another page.

  • @dragneaandrei2603
    @dragneaandrei2603 Před 3 lety

    Kinda late to the party, but I have a question security-wise. Can't somebody intercept the fetch request and see both the secret and the token? The token is irelevant since it only lasts like 2 mins as far as I remember, but the secret?

  • @juniorbytes
    @juniorbytes Před 3 lety

    Thank you !

  • @kirsanov2008
    @kirsanov2008 Před 3 lety +1

    Thank you🍺

  • @bhavikkher4502
    @bhavikkher4502 Před 3 lety

    Great!!!!!

  • @regisnut
    @regisnut Před 3 lety

    I never know when to put comma or not when I copy paste secret key?!!

  • @yousif2712
    @yousif2712 Před 2 lety

    🐐

  • @Phas0ruk
    @Phas0ruk Před rokem

    thanks this helped.

  • @saurabhsangam2737
    @saurabhsangam2737 Před 3 lety

    Thanks a lot for this ♥♥♥

  • @ericjuquel4715
    @ericjuquel4715 Před 3 lety

    Great work , even i'm not using TypeScript neither NextJs , your explanations are so clear that it works perfectly in my React App.
    On the other hand i got a lot of warnings in the console :
    - Chrome : Indicate whether to send a cookie in a cross-site request by specifying its SameSite attribute
    - Firefox : Content Security Policy: Ignoring “'unsafe-inline'” within script-src: ‘strict-dynamic’ specified
    Content Security Policy: Ignoring “https:” within script-src: ‘strict-dynamic’ specified
    Content Security Policy: Ignoring “http:” within script-src: ‘strict-dynamic’ specified
    Some cookies are misusing the recommended “SameSite“ attribute
    i saw some of those on you're video too , do you have any idea how to fix this please ?

    • @leighhalliday
      @leighhalliday  Před 3 lety

      Hmmm, I don't have a good answer without digging into it more, the SameSite cookie functionality is on the newer side, you can dive into it more here: web.dev/samesite-cookies-explained/

  •  Před 3 lety +1

    What's the difference between using client side with backend and only using client side explained here developers.google.com/recaptcha/docs/invisible? Or is it mandatory to use it with a backend? Very good explanation thou.

    • @leighhalliday
      @leighhalliday  Před 3 lety

      Either way you need a backend to verify the recaptcha token sent from Google, I believe.

  • @Miguelocod
    @Miguelocod Před 4 lety

    Great example! But i didn't understand in which cases the bot is detected. There is no checkbox? It's all done automatically by Google?

    • @leighhalliday
      @leighhalliday  Před 4 lety

      Hey Miguel! Yes, Google figures it out behind the scenes... if it can't determine it invisibly, it'll pop up one of those "click all the cars" boxes, but this happens rarely.

  • @Reydraenei
    @Reydraenei Před 2 lety

    Sorry, why am i not getting a token response?

  • @dxfirebase
    @dxfirebase Před rokem

    Thankyou

  • @GauravSingh-st5sd
    @GauravSingh-st5sd Před 3 lety

    Subscribed!! Oh, wait I am already subscribed.

    • @leighhalliday
      @leighhalliday  Před 3 lety +1

      lol, create a second account!! thanks for your support :)

  • @blah9960
    @blah9960 Před 3 lety

    Hey your tutorials are good.Can you please provide plaid integration with stripe in react.And thanks for tutorial

  • @walexpato
    @walexpato Před 3 lety

    Can you make a video on how to setup recaptcha enterprise on Wordpress. ?

    • @leighhalliday
      @leighhalliday  Před 3 lety

      Hey! Sorry... I haven't worked with Wordpress in a really long time (and have never used recaptcha enterprise)

  • @yisus7327
    @yisus7327 Před 3 lety

    Hello Leigh! Thanks for the excellent tutorial. I have a question. I set the size="invisible" in the ReCAPTCHA tag, but it doesn't work, instead it shows me that box where I have to select the images that it asks me (e.g. cars, buses, traffic lights) either way. Do you have any idea why is that?

    • @yisus7327
      @yisus7327 Před 3 lety

      I mean the captcha works well. The invisible part is what doesn't work.

  • @stevereid636
    @stevereid636 Před 4 lety

    Perfect video. Glad you didn't start from scratch as that would add an hour to the length, which equates to less tutorials from you and eventual burnout 👍🏾

    • @leighhalliday
      @leighhalliday  Před 4 lety

      Thanks Steve! It's always a balance between just enough for it to be useful, but not too much for it to be overwhelming... sometimes I do a better job than others!

  • @exeibier811
    @exeibier811 Před 3 lety

    Im a newbie in all of this and i have a doubt. Im using next js but i see you are using typescript. How can i do it in jsx? Is te same?

    • @leighhalliday
      @leighhalliday  Před 3 lety

      Hey Xabier! Same thing! Just remove any of the "type" info.

  • @ridl27
    @ridl27 Před 4 lety

    ty.

  • @narissakarimahajratalli6779

    I'm using V2 recaptcha and my token keeps coming out as undefined. It says reRef.current.exectuteAsync() is something only for recaptcha 3. Does anyone know how to do this with v2?

    • @leighhalliday
      @leighhalliday  Před 3 lety

      That's strange! Because I think I covered v2 in this video, right?

    • @narissakarimahajratalli6779
      @narissakarimahajratalli6779 Před 3 lety

      ​@@leighhalliday My apologies, yes you covered v2. But I chose v2 with the checkbox and was running into the above issue!

  • @pierrickleroy7056
    @pierrickleroy7056 Před 4 lety

    I am curious to see how you handled this. Last time I tried to implement recaptcha v2, it kept giving me challenges to only be able to finally send a message after 10+ times. Crazy shit....

    • @leighhalliday
      @leighhalliday  Před 4 lety

      Thanks Pierrick The King! Did you end up checking out the video?

    • @pierrickleroy7056
      @pierrickleroy7056 Před 4 lety

      @@leighhalliday Not yet, but I will very shortly. My implementation was for a gatsby project though but it does not seem that different at first glance. And you are using typescript, so that's even better!

  • @ashokhein
    @ashokhein Před 4 lety

    Will this also help to avoid CSRF? and how do we test simulate the bot flow?

    • @leighhalliday
      @leighhalliday  Před 4 lety +1

      Hey Ashokkumar! Yes, I believe it would avoid the need to worry about CSRF in this case... I wouldn't bet my life on it haha, but it's at least verifying that someone got a valid token from this page, and it hasn't been used before (the tokens are single use).

  • @user-tq2xj8xq2j
    @user-tq2xj8xq2j Před 3 lety

    How to set login attempts counter with this reCAPTCHA? Is it possible?

    • @leighhalliday
      @leighhalliday  Před 3 lety

      Hey! I think this would have to be something you do yourself on the backend if you'd like this.

  • @amymccormick5360
    @amymccormick5360 Před rokem

    ReCAPTCHA has such a pain, that I can’t even order from my regular sites

  • @majdmn8187
    @majdmn8187 Před 3 lety

    Hello does this tutorial support reCAPTCHA v3 ?

    • @leighhalliday
      @leighhalliday  Před 3 lety +1

      It'll be similar, but it's a bit different. Maybe get it working with v2 and then investigate how to upgrade to v3.

  • @marinamoreira4216
    @marinamoreira4216 Před 3 lety +1

    Am I the only one getting a cors error from this?

    • @leighhalliday
      @leighhalliday  Před 3 lety +1

      Make sure you have billing enabled and the proper apis enabled as well, I think that may be why :) you’re not the only one!

    • @marinamoreira4216
      @marinamoreira4216 Před 3 lety

      @@leighhalliday Thanks for the tip! I managed to get it working, thank you so much!

  • @mustafaozdogan7849
    @mustafaozdogan7849 Před 3 lety

    I get an error when I define "ref"

  • @moosegoose1282
    @moosegoose1282 Před 2 lety

    recaptha or csrf?

  • @joshblf
    @joshblf Před 2 lety

    Amazing video! Thanks for this.