简体   繁体   English

使用.aspx语言C#的电子邮件形式的垃圾邮件-如何添加验证码

[英]Spam in email form using .aspx language C# - how to add CAPTCHA

---- Final Solution ---- ----最终解决方案----

Since I am not familiar with asp - I decided to go with a jquery captcha ( thanks for all your help ) 由于我对asp不熟悉-我决定使用jquery验证码(感谢您的所有帮助)

Edit New 编辑新

I am using the reCaptcha with ASP.NET doc's found here: https://developers.google.com/recaptcha/docs/aspnet 我正在将reCaptcha与ASP.NET文档结合使用: https : //developers.google.com/recaptcha/docs/aspnet

Okay I added the code the the page see screen shot here. 好吧,我在页面看到的屏幕快照中添加了代码。 http://qualityplanners.com/1.png http://qualityplanners.com/1.png

I am now getting this error. 我现在收到此错误。 http://www.qualityplanners.com/freequotecs.aspx http://www.qualityplanners.com/freequotecs.aspx

The first step of the docs asks me to: Download and Add Recaptcha.dll to the root.. how do I link it without visual studio? 该文档的第一步要求我:下载Recaptcha.dll并将其添加到根目录中。如何在不使用Visual Studio的情况下将其链接?

Let me know -O 让我知道-O

Old Below 老下面

I need help with a client with aspx - I am only familiar with PHP. 我需要使用aspx的客户端的帮助-我只熟悉PHP。

He keeps getting spam with this old form the past web guy coded. 他一直用以前的网络人员编码的旧格式来获取垃圾邮件。 http://www.qualityplanners.com/freequotecs.aspx http://www.qualityplanners.com/freequotecs.aspx

I am looking into ways to add reCAPTCHA or an easy method to stop spam... even just adding a simple validation for whats 5+6 or something. 我正在研究添加reCAPTCHA的方法或一种阻止垃圾邮件的简单方法...甚至只是为5 + 6或类似内容添加简单的验证。

I tried looking into the documentation for reCAPTCHA or some other free online CAPTCHA scripts but keep getting error - I am probably installing it wrong. 我尝试查看reCAPTCHA或其他一些免费的在线CAPTCHA脚本的文档,但始终出现错误-我可能安装错误。

Whats the correct way to do this? 什么是正确的方法?

This is the fiddle of the linked code. 这是链接代码的小提琴。 http://dotnetfiddle.net/ROzRgl http://dotnetfiddle.net/ROzRgl

Thanks in advance. 提前致谢。 -O -O

I think you may have skipped step 1. 我认为您可能已跳过步骤1。

Add a reference on your website to library/bin/Release/Recaptcha.dll: On the Visual Studio Website menu, choose Add Reference and then click the .NET tab in the dialog box. 在您的网站上将引用添加到library / bin / Release / Recaptcha.dll:在Visual Studio网站菜单上,选择“添加引用”,然后在对话框中单击“ .NET”选项卡。 Select the Recaptcha.dll component from the list of .NET components and then click OK. 从.NET组件列表中选择Recaptcha.dll组件,然后单击“确定”。 If you don't see the component, click the Browse tab and look for the assembly file on your hard drive. 如果看不到该组件,请单击“浏览”选项卡,然后在硬盘驱动器上查找程序集文件。

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

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