Problem with recaptcha – Input error: Invalid referer – Solution
2 weeks ago i have managing my website and i have tried to implement a recaptcha on a website(my own) to stop spamming. Although i used it earlier on that website but due to some changes i have to make it more valuable.
But i have found that recaptcha shows an error message - Input error: Invalid referer. I have checked it one ….two…. three times but didn’t find any solution. I also think that maybe i have used wrong file path or wrong keys so i have downloaded the file(that contains keys) from server, changes it to earlier API keys(that was working properly), uploading that file to server but problem was still there.
At last i have made following changes:
Changes that i have made. Changes that you will have to make:
- Follow this link http://recaptcha.net/api/getkey.
- Enter correct domain name. (www.example.com).
- Generate a new key and use it in place of keys.
- Its working fine…:)
Where is the problem?
Key that i have used earlier was correct but the domain name was incorrect. Earlier it was working with that domain. I think in new version of recaptcha it creates problem, when found a wrong domain and generated a key according to that domain, while in the older version it was not. I’m not sure but recaptcha generate key according to domain(may be md5 encode) that will work for that domain only (except recaptcha’s global key option). That is why, while you are working on different domain and use the same key on each domain it will not work on all domains(except global key). As i have done you may also solve your problem…try my solution and feel free to comment. :)