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

Поділитися
Вставка
  • Опубліковано 18 лис 2024

КОМЕНТАРІ • 58

  • @threeone6012
    @threeone6012 3 роки тому +24

    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!

  • @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

  • @derekwilliams6543
    @derekwilliams6543 2 роки тому

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

  • @szymeqpl8463
    @szymeqpl8463 Рік тому

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

    • @jeffmclennan8294
      @jeffmclennan8294 8 місяців тому

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

  • @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

  • @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

  • @J90JAM
    @J90JAM 2 роки тому

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

  • @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

  • @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

  • @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.

  • @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?

  • @diogolobo1391
    @diogolobo1391 Рік тому

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

  • @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.

  • @itzzpadre
    @itzzpadre 2 роки тому +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

  • @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 Рік тому

      @@JJE990 how, what I wondered too

  • @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!

  • @stephenpetersen3607
    @stephenpetersen3607 Рік тому

    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.

  • @stephenpetersen3607
    @stephenpetersen3607 Рік тому

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

  • @starchaser2000
    @starchaser2000 2 місяці тому

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

  • @pizzadesign
    @pizzadesign 3 роки тому +1

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

  • @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.

  • @seyoch
    @seyoch 3 роки тому +1

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

  • @toma1610
    @toma1610 Рік тому

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

    • @rightplay00
      @rightplay00 6 місяців тому +1

      Use "submit" as the data action

  • @gijeet5374
    @gijeet5374 2 роки тому

    can you please add the code to github?

  • @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!

  • @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.

  • @azama4182
    @azama4182 2 роки тому

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

  • @happysongs1802
    @happysongs1802 3 роки тому

    You 're the man .

  • @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 😞

  • @sijmon20031
    @sijmon20031 3 роки тому

    Thanks a lot!

  • @marcoguada42
    @marcoguada42 6 місяців тому

    God thank you