Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

insight's avatar

How to work out google re-captcha in Laravel 10 ?

Dear friends, When I try to implement google re-captcha in RHEL environment with apache I got error as

cURL error 28: Connection timed out after 10001 milliseconds (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://www.google.com/recaptcha/api/siteverify?secret=6Ld3My.......

When I look my /var/log/httpd/error_log I got error as

[Mon Dec 04 16:40:26.352681 2023] [:error] [pid 44668:tid 44668] [client 10.50.82.166:9976] [client 10.5.82.166] ModSecurity: Rule 5625a396f040 [id "932150"][file "/etc/httpd/modsecurity.d/activated_rules/REQUEST-932-APPLICATION-ATTACK-RCE.conf"][line "464"] - Execution error - PCRE limits exceeded (-8): (null). [hostname "careers-ksrtc.karnataka.gov.in"] [uri "/Dashboard"] [unique_id "ZW2zotCXxHvW41vB_Tn4fQAAAAI"], referer: https://careers-ksrtc.karnataka.gov.in/Admin

How it can rectify ? Is google recaptcha need white listing of that IP/domain ?

Please advise

Thanks

Anes P A

0 likes
2 replies
Snapey's avatar

talk to your own admins. Seems you block your own traffic.

martinbean's avatar

@insight Something is wrong with your code since you seem to be passed the reCAPTCH secret in the query string rather than the body of a POST request…

https://www.google.com/recaptcha/api/siteverify?secret=6Ld3My.......

Please or to participate in this conversation.