简体   繁体   English

验证码检查-表单正在提交到我无权访问的服务器页面

[英]Captcha check - Form is submitting to a server page I do not have access to

My client needs me to implement captcha on his form. 我的客户需要我在他的表格上实施验证码。 The form's action is set to an external page, to which we do not have access. 表单的操作设置为我们无权访问的外部页面。

I wanted to use Google's reCaptcha but it seems that piece of code (which does the checking) needs to be placed in the targed page (which we cannot access). 我想使用Google的reCaptcha,但似乎需要将代码(进行检查)放在目标页面(我们无法访问)中。

What is the solution? 解决办法是什么? I tried with using some simple Javascript array and jQuery checking of the value but it seems that spammers after couple of months learned how to dig the values out of the page code (yes, the values are written there, it's javascript - and I do not know better way) because the spam is arriving again. 我尝试使用一些简单的Javascript数组和jQuery检查值,但似乎垃圾邮件发送者在几个月后才学会了如何从页面代码中挖掘值(是的,值写在其中,它是javascript,但我没有知道更好的方法),因为垃圾邮件再次到达。

A good client-side way would be even better. 好的客户端方法会更好。 If you know a script or some code to be used here it'd be very appreciated. 如果您知道此处要使用的脚本或一些代码,将不胜感激。

Host another server with captcha and submit your form there. 使用验证码托管另一台服务器,然后在此处提交表单。 In case of success, submit the form from the captcha server to the one you don't have access to. 如果成功,请将验证码服务器中的表格提交给您无权访问的表格。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM