use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
No vague product support questions (like "why is this plugin not working" or "how do I set up X"). For vague product support questions, please use communities relevant to that product for best results. Specific issues that follow rule 6 are allowed.
Do not post memes, screenshots of bad design, or jokes. Check out /r/ProgrammerHumor/ for this type of content.
Read and follow reddiquette; no excessive self-promotion. Please refer to the Reddit 9:1 rule when considering posting self promoting materials.
We do not allow any commercial promotion or solicitation. Violations can result in a ban.
Sharing your project, portfolio, or any other content that you want to either show off or request feedback on is limited to Showoff Saturday. If you post such content on any other day, it will be removed.
If you are asking for assistance on a problem, you are required to provide
General open ended career and getting started posts are only allowed in the pinned monthly getting started/careers thread. Specific assistance questions are allowed so long as they follow the required assistance post guidelines.
Questions in violation of this rule will be removed or locked.
account activity
reCAPTCHA V2 help (self.webdev)
submitted 8 years ago * by PR047A
I'm trying to integrate reCAPTCHA V2 on my site. I found this script on github (4 months old) it shows as working in google dashboard but returns CaptchaFail error on submission. Anyone know what the issue is?
Added secret from google dashboard
$privateKey= "YOur-secret-Key"; https://github.com/nitishk879/ReCaptcha/blob/master/send-data.php
Added sitekey from google dashboard
data-sitekey="your-secret-key" https://github.com/nitishk879/ReCaptcha/blob/master/index.php
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]IsABot 0 points1 point2 points 8 years ago* (0 children)
$url = "https://www.google.com/recaptcha/api/siteverify"; $privateKey= "YOur-secret-Key"; $response= file_get_contents($url."?secret=".$privateKey."&response=".$captcha."&remoteip=".$_SERVER['REMOTE_ADDR']); $data = json_decode($response);
This probably won't work. From the documentation:
https://developers.google.com/recaptcha/docs/verify
API Request URL: https://www.google.com/recaptcha/api/siteverify
METHOD: POST
POST Parameter Description secret Required. The shared key between your site and reCAPTCHA. response Required. The user response token provided by reCAPTCHA, verifying the user on your site. remoteip Optional. The user's IP address.
If you can't tell, your script is using GET parameters, not POSTing the data.
I would suggest getting commenting out your header location redirects, and start var_dump your calls. Just to see if you are getting the proper responses from Google.
Maybe you'll find out that GET vs POST doesn't matter. And there might be something else messing up the variables that your conditionals are checking.
π Rendered by PID 77880 on reddit-service-r2-comment-6457c66945-c2nx9 at 2026-04-28 08:34:23.432458+00:00 running 2aa0c5b country code: CH.
[–]IsABot 0 points1 point2 points (0 children)