When testing a website that uses the reCAPTCHA service, it can be a mighty pain to repeatedly enter the verification code. I created a quick-and-dirty ASP.NET MVC site that “fakes” the Google api-verify.recaptcha.net service to allow quick testing.
Clone my RecaptchaFake repository from
http://github.com/ajryan/RecaptchaFake, build it, and serve it at
http://localhost:80/verifyusing IIS or IIS Express.
Edit your hosts file (
c:\windows\system32\drivers\etc\hosts- run Notepad as Administrator for permission to save the file). Add the following entry:
With the site served as described above, simply enter
false in the reCAPTCHA challenge textbox and the fake service will reply with the same. Enter something different and the service will fall back on the CaptchaResult appSettings value in Web.config.