how to use google reCAPTCHA on localhost

Spread the love

use google reCAPTCHA on localhost

A CAPTCHA is a program that ensures sites against bots by producing and evaluating tests that people can pass yet current PC programs can’t. For instance, people can read misshaped message as the one demonstrated as follows, however current PC programs can’t. Read More About Captcha on http://www.captcha.net/

If you are here so its simply means that you are familier with captcha and you of course know what is captcha and google reCAPTCHA.But i am writing this post to tell you that you can also use google recaptcha on localhost too.Lets Start

how to use google reCAPTCHA on localhost

Step 1 : download code

Before we start you have to download google recaptcha integration kit.Either you can download it from google recaptcha website or you can download from here

Download Google reCAPTCHA Code

after downloading it copy it in your localhost folder

Step 2 : login to google

go to google recaptcha and login with your google account.
after loggin in you will redirected to https://www.google.com/recaptcha/admin .It will ask you to register your site.Simply put a Label and put localhost as domains and hit Register button

how to use google reCAPTCHA on localhost

Step 3 : get Site Key and Secret Key

after registering localhost as a site you will redirected to a new page.here you can see your Site Key and Secret Key just copy them and use it in your recaptcha file.

If you have downloaded it from my given link then replace site key and secret key in examples > example-captcha.php file.

how to use google reCAPTCHA on localhost

Step 4 : connect files

put below file where you want your captcha appear

attach this recaptcha api js file

Step 5 : Run File

after compliting all above steps run you recaptcha file from localhost as http://localhost/recaptcha/examples/example-captcha.php here you can see google reCaptcha.

Step 6 : validating captcha

in your example-captcha.php file you can check if user passed the captcha test or not by checking g-recaptcha-response value

hope it wil help you to integrate google recaptcha in localhost if you are using it for testing or learning.if you have any questions then let me know in comment section below.subscribe me as well 😀

use google recaptcha asp.net
how to use google recaptcha in asp net c#
how to use google recaptcha in codeigniter
how to use google recaptcha in html form
how to use google recaptcha in contact form 7
how to use google recaptcha in asp.net mvc
how to use google recaptcha in mvc
how to use google recaptcha in javascript
use google recaptcha
how to use google recaptcha in php form
how to use google recaptcha
how to use google recaptcha in asp net


  1. Hello there, I found your site by the use of Google at the same time as searching for a similar topic, your site
    came up, it seems to be great. I’ve bookmarked it in my google bookmarks.

    Hi there, simply changed into alert to your blog via Google, and located that it’s truly informative.
    I am gonna watch out for brussels. I will be grateful if
    you proceed this in future. Lots of people will probably be benefited out of your writing.


  2. An impressive share! I’ve just forwarded this onto a colleague who has been conducting a little research on this.
    And he in fact bought me lunch due to the fact that I found it for him…
    lol. So allow me to reword this…. Thank YOU for
    the meal!! But yeah, thanks for spending time to talk about this subject here on your web page.

  3. Hello there! I know this is kinda off topic but I was
    wondering which blog platform are you using for this website?
    I’m getting sick and tired of WordPress because I’ve had issues with hackers and
    I’m looking at alternatives for another platform.

    I would be great if you could point me in the direction of a good platform.

  4. First off I want to say superb blog! I had a quick question in which I’d
    like to ask if you don’t mind. I was curious to find out how
    you center yourself and clear your thoughts prior to
    writing. I’ve had difficulty clearing my mind in getting my
    thoughts out there. I do take pleasure in writing but it just seems like the first 10
    to 15 minutes are lost simply just trying to figure out how to begin. Any suggestions or tips?
    Appreciate it!

  5. I don’t know whether it’s just me or if everybody else experiencing
    issues with your site. It seems like some of the written text within your content are running off the screen. Can someone else please provide feedback and let
    me know if this is happening to them too? This may be a issue
    with my web browser because I’ve had this happen previously.

  6. I blog frequently and I truly appreciate your content.
    This great article has truly peaked my interest.

    I’m going to take a note of your site and keep checking
    for new information about once a week. I opted in for your RSS
    feed as well.

  7. Aw, this was a very nice post. Taking the time and actual effort to produce a very good article… but what can I
    say… I procrastinate a lot and don’t manage to get anything done.

  8. Its like you read my mind! You seem to know so much about this,
    like you wrote the book in it or something. I think that you could do with some pics to drive the message
    home a little bit, but other than that, this is magnificent blog.
    A fantastic read. I will certainly be back.

  9. this has been very helpful. The ads are very invasive though. I couldn’t even comment until i cleared then away by css.

Leave a Reply

Your email address will not be published. Required fields are marked *