reCAPTCHA invalid-input-response

3,978 views
Skip to first unread message

Rob Karman

unread,
Oct 15, 2015, 2:45:51 PM10/15/15
to reCAPTCHA
Hello,

Strangely enough, I can not find a solution to me issue after a week of Google searches. I can not get "sucess" : ture using reCAPTCHA no matter how I try. I have registered my domain "www.oceanetwork.org" using reCAPTCHA 2.0 (but I also have "vendors.oceanetwork.org" registered with reCAPTCHA 1.0). No matter how I format my server side verification (both GET and POST) I always get an "invalid-input-response"

An example page is online at: https://www.oceanetwork.org/captcha.cfm

My server validation string often looks like: https://www.google.com/recaptcha/api/siteverify?secret=[ . . .  ]&response=03AHJVusW1AeYPc63UWES24rkaIUQLqaS9Xx2zp2SKWe5Rz7s4vAeS8deWZVc400hahBaEldYNsCcQXP2jZTUP6YaPu1XOLGRDJ6Uvb3QHiQtDBpvIjuGhNZ1rUDmNQqyvd4HX8CCN7dduEomVlZkWeVutMYJmB1sRdNnmUSjRZtP987UxIm6nGst68ZjRCADvr9MwuuzSlqXCIx05Id8DMHDLqBJTkVGCsJSms4Jook78-rR1oAYUOw8gXMXN0dT2UtJdymESLy88hawAANr2-B1sMMi9NBPUEHx5SEMwPHOGfFKnXwJfW2UvFyHAu5Ca6gi2YyIwnWrCDaN4mXHCQmSna7UthJUt5KRcqhps0KawBKFPJtyMFrNTudHrvzHGl4q1VQ-GB9HQtZThgxa4pfkzmAlpqJRV2uGhUnVpXrJE394eNvn-ibjf-Y7hdLWWI5ZtuAfaa5pOM1uLHPJh2XcjfVvnKL8pccocMcuJgsd1W1pdsLL8GL5ABjN1fm5dsiKTa-kIVx4S2lDwTa3ur-cKhliSn8TGypkfqyu4nLHGC46EFMOdnRhp7zpEJMhJHH87kZUlHNZWRSnjo8o2m5HWGM0IDO1EbfG7Lt3kyJgkn9FrKSjKXtgg5T2BZhd1817-nRQbpow1qyGfc1lgpwbj2odRlE2mDsxNdPEiT05tlTwVgptaUuYYo8Ka4EInJX2M1ppVc6fxaIQ0qIPwO5NNVtBtDQkSMAN3bu0HPVh3-DMkDIDZLtjHbl096Q09WcaLFcH9HUajy6R6lHZ1N1Ni7qhs3xENQ1R69w42l1bcGxMMGnEZvLt5Y0k8vYmuMcnJZavRnUFGZg-84wp0KxAWLWqb0oTwgd2k9gpuNVNuIdA6LO2YFpWGDGpvpWV0D0amfUjQZSXzpyaC4ZD5u07Yx1DU-1TgNdJOvXaCnCGtdR2RyUndmUIGqHZVayfQHfo3zhVpIg&remoteip=[ . . . ]

This seems like a very long string and I wonder if it is being truncated but I also sent as form fields using POST and I get the same invalid-input-response message.

Further information: I am using ColdFusion 10 for the server side verification and am using something like this:
<cfhttp url="https://www.google.com/recaptcha/api/siteverify" method="POST" timeout="10" multipart="yes">
            <cfhttpparam name="secret" value="[ . . . ]" type="formfield">
            <cfhttpparam name="response" value="#FORM["g-recaptcha-response"]#" type="formfield">
            <cfhttpparam name="remoteip" value="#CGI.REMOTE_ADDR#" type="formfield">
</cfhttp>

I have been frustrated by this issue for over a week and I appreciate any help I can get...usually I can Google an answer to these type of questions but there is surprisingly few pages/posts that address this error.

Thanks in advance!
-Rob
Message has been deleted

P A Greco

unread,
Nov 9, 2015, 5:19:46 PM11/9/15
to reCAPTCHA
Not sure if this helps....but to see what you're getting back from Google's reCaptcha response try: 

<cfhttp url="https://www.google.com/recaptcha/api/siteverify" method="POST" timeout="10" multipart="yes">
            <cfhttpparam name="secret" value="[ . . . ]" type="formfield">
            <cfhttpparam name="response" value="#FORM["g-recaptcha-response"]#" type="formfield">
            <cfhttpparam name="remoteip" value="#CGI.REMOTE_ADDR#" type="formfield">
</cfhttp>
 
<cfdump var = "#cfhttp#">

My set-up looks practically the same as your example. Next I do the following to verify the user's response:

<cfset response = deserializeJSON(cfhttp.filecontent)>

<cfif response.success eq "Yes">
           Do some stuff now.
<cfelse>
          Or do something else.
</cfif>

Reply all
Reply to author
Forward
0 new messages