Google reCAPTCHA | How to Implement Google reCAPTCHA on Website

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

КОМЕНТАРІ • 32

  • @BUROLABORAL-l1h
    @BUROLABORAL-l1h 14 днів тому +1

    debes de agregar en dominios 127.0.0.1 si usas xamp, ya que si trabajar en frameworks como Laravel, no detecta el localhost.

  • @Abror_Rahmatov
    @Abror_Rahmatov Рік тому +3

    Thanks a lot 👍👍👍

  • @hannaberyhvac2980
    @hannaberyhvac2980 2 місяці тому +3

    Don't you need to implement the private key somewhere? Don't you have to do anything server side? Or is it really that simple?

    • @learning-axis
      @learning-axis  2 місяці тому

      "Yes, you need to implement the private key to validate the reCAPTCHA token with Google's API."

    • @hannaberyhvac2980
      @hannaberyhvac2980 2 місяці тому +1

      @@learning-axis Hi, I didn't see anything about that in the video, can you explain what we need to do or make another video??? Thank you so much.

  • @arielxygaming7325
    @arielxygaming7325 7 місяців тому +1

    Please I want to learn and be as strong as you. Where to learn like you?

  • @AsadQARJAUBAEV-ch2cn
    @AsadQARJAUBAEV-ch2cn Рік тому +1

    Nice movie clips

  • @monat_son
    @monat_son 8 місяців тому +1

    thanks bro

  • @anuragprajapati2939
    @anuragprajapati2939 Рік тому +2

    Nice bro

  • @rajuchowdhury0501
    @rajuchowdhury0501 Рік тому +2

    aapki voice sunke samajhan chahte hai hum.

  • @smartsolutions9288
    @smartsolutions9288 Рік тому +1

    thanks, bro

  • @freelancerguidance999
    @freelancerguidance999 7 місяців тому +2

    are bhai please apani voice ke sath video banao. please.

  • @e-jay6390
    @e-jay6390 21 день тому +1

    How do you complete the server s ide set-up using the secret key?

    • @learning-axis
      @learning-axis  20 днів тому

      To complete the server-side setup for Google reCAPTCHA, send a POST request to Google's verification URL with your secret key and the response token. This verifies the user's response to ensure it's valid.

    • @e-jay6390
      @e-jay6390 19 днів тому

      @@learning-axis Firstly, THANK YOU so much for your response.
      But please have patience with me. I understand the "client side integration"; it's the "server side integration" that I'm struggling with.
      How exactly do I send a POST request to Google's verification URL with the secret key and the response token?
      I have the secret key, but where/what can I get a "POST request", where/what is the Google "verification code", and where/what is the "response token"?
      Will truly appreciate your assistance. THANK YOU for your time.

    • @learning-axis
      @learning-axis  19 днів тому

      @@e-jay6390 Response Token: This is generated after the user completes reCAPTCHA and is included in your form data.
      POST Request: To verify, send a POST request to Google’s verification URL: www.google.com/recaptcha/api/siteverify
      Example
      JavaScript:
      const responseToken = /* token from reCAPTCHA */;
      const secretKey = 'YOUR_SECRET_KEY';
      fetch('www.google.com/recaptcha/api/siteverify', {
      method: 'POST',
      headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
      body: `secret=${secretKey}&response=${responseToken}`
      })
      .then(response => response.json())
      .then(data => {
      if (data.success) console.log('Verification successful!');
      });
      PHP:
      $responseToken = $_POST['g-recaptcha-response'];
      $secretKey = 'YOUR_SECRET_KEY';
      $response = file_get_contents("www.google.com/recaptcha/api/siteverify?secret=$secretKey&response=$responseToken");
      $responseKeys = json_decode($response, true);
      echo $responseKeys["success"] ? "Verification successful!" : "Verification failed!";

    • @e-jay6390
      @e-jay6390 18 днів тому

      ​@@learning-axis THANK YOU for your reply once again, as well a your patience.
      Okay, so (an example) the POST REQUEST is the JavaScript you created.
      I see where I can place the SECRET KEY in the second field, so my questions are...
      - Where does this JavaScript go in the first place? On the same html page where the form was created or in a different html page altogether?
      - Where do I get the token from the reCAPTCHA to place it in the "const response Token =" field? Is it automatically generated in that field when the user clicks on the reCAPTCHA box?
      - And HOW exactly do I send this completed post to Google's verification URL?
      I know these questions may be tiresome, and the answers may even be elementary; but there really hasn't been any video out there which aptly explains this process.
      So once again, I will truly, truly appreciate your time and patience in assisting me.
      THANK YOU in advance.

  • @mudassar_nazar
    @mudassar_nazar 5 місяців тому

    Thanks for video

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

    how can i do to my submit button disabled if the captcha has not complete?

  • @SuryanshhShandilya
    @SuryanshhShandilya Рік тому +1

    🎉❤❤❤

  • @hannaberyhvac2980
    @hannaberyhvac2980 2 місяці тому +1

    I just tried this and if you don't click the recaptcha, it still submits the form!

    • @learning-axis
      @learning-axis  2 місяці тому

      You need to add validation to check if reCAPTCHA is completed before processing the form submission.

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

      @@learning-axis Hi, I didn't see anything about validation in the video, can you explain what we need to do or make another video??? Thank you so much.

  • @udhay2005
    @udhay2005 Рік тому +1

    Thnx bro❤❤

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

    Bhai jo aap yeh coding karte ho short video m kaise karte ho yr

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

    Sir inko apni blogger website me kaise use kre

  • @AsadQARJAUBAEV-ch2cn
    @AsadQARJAUBAEV-ch2cn Рік тому +1

    Qaraqalpaq sila

  • @AnkurMandal-iz2lh
    @AnkurMandal-iz2lh Рік тому +1

    sir ye reCaptcha ka file kaha se laye

  • @lostknightzero6716
    @lostknightzero6716 Рік тому +1

    Nice bro