How to add Google ReCaptcha v3 to a PHP web page. The only easy guide on the entire web!

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

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

  • @threeone6012
    @threeone6012 3 года назад +25

    You are are 100% right. Google's instructions are lacking and nobody definitively explains the proper implementation. I've spent hours trying to figure out. This video deserves thousands of more hits. Great upload!

    • @XL_Consultant
      @XL_Consultant  3 года назад +2

      No probs, glad it helped. I just wish you'd found it earlier and not wasted all those hours, oh well.

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

    Robin. Thanks for all your support in helping me resolve the problems I have been experiencing with the reCaptcha implementation on my website. I have learnt so much from you over the past few days. Thanks for the time and effort that you put into helping resolve these problems. My form is now live and working!

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

      No probs Dave, glad it's working now!

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

    The hero I needed, but not the hero I deserved. Thank you, sir.

  • @johnsci911
    @johnsci911 Год назад

    Thanks this saves me a lot of time finding correct way to implement this because google's documentation doesn't make sense if you do research

  • @szymeqpl8463
    @szymeqpl8463 Год назад

    Thank's man. Great video! I spend hours of understanding google instructions.

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

      Google instructions only give you general info. they assume all are developers so you see what is required

  • @IanAbelC
    @IanAbelC Месяц назад

    This video is a life saver. Thank you very much!

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

    Thanks for saving me a lot of time Robin, can't understand why Google don't give full instructions!

  • @georgeelliottphotography1
    @georgeelliottphotography1 3 года назад +2

    Nice one Robin. I really like the way you have already typed out the code and you explain what each section does. Clear and precise. I have already got most of the code you mentioned from another site I built, but, I have no idea what they do. I understand so much more now.
    On another note. I am sure it would help your cause for new viewers if you had a link to the coding and encouraged people to sign up and hit the subscribe button.
    Regards
    George

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

    Helpful video! Would love to see a full working demo using PHP.

  • @NedumEze
    @NedumEze Год назад

    Thank you very much Sir.
    Please may I ask? Can I add another class to button for styling purposes?
    PHP requires the 'name' attribute for the button element. You didn't use it! Why please?

  • @edgar-mmxxiii
    @edgar-mmxxiii 3 года назад +1

    I believe the 2 minute time limit adds more security against the bots especially those that are repeatedly performing log ins with time interval trying to brute force passwords so if you bypass it you are not using that feature.

    • @jarodmorris611
      @jarodmorris611 Год назад

      He is not bypassing anything. He is delaying when the reCaptcha is engaged so that it engages when needed.

  • @diogolobo1391
    @diogolobo1391 Год назад

    worked for me with a few changes, thank you very much

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

    Dude! You. Are. The. Man! Thank you so much. My contact form is now (mostly) spam free. Thank you!

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

      Hey, thanks. Glad the vid is still helping people

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

    great got it working on a form. driving me nuts as it kept responding with a error and work up this morning and noticed I left off the = sign after ?secret now its responding with correct data. Thank you.

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

    It's taken me ages to figure this out but this is the only video I've watched where I feel like my brain isn't going to pop! Great video. Would there be any possibility of a tutorial explaining how the PHP and JS can be separated into multiple files? Thanks!

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

      Yeh, I know, frustrating isn't it! Glad you got there in the end. Prob not, as you can see this channel (not exactly a lot going on anyway, but) is about Excel really, not web/php. It was just a useful place to dump this video in case it helped anyone.

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

      @@XL_Consultant that's fine - think I've accidentally done it anyway now :D

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

      @@JJE990 how, what I wondered too

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

    Excellent, but would help if you would include the scripts somehow for copying to make it even easier. Thanks again for posting.

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

    Thank you for the explanation. The video that came up first was garbage. The example doesn't even look like my google admin page and the person explaining made me fall asleep. Yours was easy and you explained it so well. Thank you

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

    finally a simple and effective answer, maybe that's why long forms are validated as robot, BUT!!! HTML5 required fields are not validated, and I don't know how to fix it 'cause I don´t know JS

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

    if I use a separate php file, how does that file get called?

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

    Very helpful, thank you for sharing ... saved me a lot of hassle!

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

    Great Video! If you have the time, do the migration from v3 keys to enterprise ones.

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

      Interesting suggestion. Not sure I'll get time, ha ha!

  • @toma1610
    @toma1610 Год назад +1

    For me is confusing because the video refers to LOGIN and I look for just submit a form.

    • @rightplay00
      @rightplay00 7 месяцев назад +1

      Use "submit" as the data action

  • @starchaser2000
    @starchaser2000 4 месяца назад

    In my opinion, this overrules any jQuery validation of that form...so the form will be sent in every case.

  • @itzzpadre
    @itzzpadre 3 года назад +2

    So i actually came across your video a while back and it was something i wanted to implement but the problem is google is vague when it comes to details, anyway thanks to your video i basically copied your code structure as a base and it now allows me to protect my sites contact form, login and register as a starting point
    thanks so much

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

    Thanks for the video. I implemented this on my website, but I'm not sure if it works now. Will have to wait and see if I still receive spam mail. Thanks

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

      Perfect man! This works!

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

    How do I get the site key ?

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

      Hi Peter, sorry, you get it from your Google reCaptcha account

  • @michaelcrawford2726
    @michaelcrawford2726 Год назад

    Didn't exactly show it, can you demo it?

    • @XL_Consultant
      @XL_Consultant  Год назад

      Sorry, this vid is over 2 years old now and I'm not planning on doing anything with it. It's just here as is.

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

    Any one else getting the "Undefined array key "g-recaptcha-response" error?

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

    can you please add the code to github?

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

    It might be the only easy guide going, but I can't get my form working. Are you able to help if I send you my code?

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

      Hi Dave, I'm no expert but I can try! Email it to (removed)

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

      @@XL_Consultant Thanks. I have Emailed the files.I should add that the form and associated validation wokrs fine until I try and integrate captcha.

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

    Google is making people go insane by giving incomplete documentation x'D

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

    Hi! Thanks for your video, a very usefull guide! As the guy above asked, are you able to help if I send you my code via e-mail? My code is not working how it show. Cheers from Brazil!

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

      Hi Lucas. In the end it took quite a while to fix Dave's issue (which actually ended up being nothing wrong with the code itself at all).
      So, first question, are you using Form Validation within Bootstrap?
      If so, then that is probably the issue. If not, then email you code to (email removed), if I can find the issue fairly quickly then ok but if not then I don't have time to spend ages on it for you. ok?

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

      @@XL_Consultant Ok, I think my problem is happening because I'm using the library code PHPMailer. So, in this case, do you know more less what the reCAPTCHA code could change in this case? And sorry for my bad English and thanks for the answer.

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

      @@lucascoelho1984 Hi, sorry, no I have no idea what it should change to 😞

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

    You are brilliant! and google are not so much brilliant :)

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

    Thanks a lot!

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

    You 're the man .

  • @marcoguada42
    @marcoguada42 8 месяцев назад

    God thank you