形式检查器过滤“链接垃圾邮件” [英] form-checkers to filter "link-spamming"

查看:72
本文介绍了形式检查器过滤“链接垃圾邮件”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我已经设计了自己的表格检查代码,包括姓名,地址,电子邮件,评论

盒子等。

我的客户在他的消费者反馈表中得到的是垃圾邮件。来自

公司

多次在所有领域插入超链接,当然还有他们的

炒作...


可以使用Javascript来拒绝表格内容,其中包含

URL''s?

(或者这会涉及到reg ex我有一个完全的心理障碍?

:)

克劳德

Hi,

I''ve designed my own form checking code for name, address, email, comment
box etc.
What my client keeps getting in his consumer feedback forms is "spam" from
companies who
repeatedly insert their hyperlinks in all fields, of course along with their
"hype"...

Is is possible with Javascript to refuse form contents whose strings contain
URL''s?
(or would this involve reg ex which I''ve got a total mental block against?
:)
Claude

推荐答案



Claude写道:

Claude wrote:


我设计了自己的表格检查代码,用于姓名,地址,电子邮件,评论等/>盒子等
我的客户在他的消费者反馈表中得到的是垃圾邮件。来自
的公司在所有领域中反复插入超链接,当然还有他们的炒作......

Javascript可以拒绝表格内容的字符串包含
URL''s
(或者这是否涉及reg ex,我有一个完整的心理障碍?
:)
Hi,

I''ve designed my own form checking code for name, address, email, comment
box etc.
What my client keeps getting in his consumer feedback forms is "spam" from
companies who
repeatedly insert their hyperlinks in all fields, of course along with their
"hype"...

Is is possible with Javascript to refuse form contents whose strings contain
URL''s?
(or would this involve reg ex which I''ve got a total mental block against?
:)



您可以考虑以下因素。如果,这些垃圾邮件发送者

关闭javascript怎么办?你的javascript在这种情况下无效。


解决方案:在客户端和服务器端进行检查。



You can, however consider the following. What if, these "spammers"
turn off javascript? Your javascript would not work in this case.

Solution: Do the check on both the client side AND server side.

但是,您可以考虑以下内容。如果这些垃圾邮件发送者关闭javascript怎么办?你的javascript在这种情况下不起作用。

解决方案:在客户端和服务器端进行检查。
You can, however consider the following. What if, these "spammers"
turn off javascript? Your javascript would not work in this case.

Solution: Do the check on both the client side AND server side.




感谢网站。开发...


在这个主题上做了很多谷歌搜索 - >确实发现

它被称为评论垃圾邮件,即与垃圾邮件用户输入表单有关,但

所有网上的内容似乎与评论垃圾邮件有关。在博客

软件(WordPress,特别是Moveable Type)。当然,垃圾邮件机器人

收获电子邮件地址。实际上很少有解决方案为

人提供了将超链接插入网络表单的方法。


Claude



thanks web.dev ...

have done a lot of google searching on this subject --> did find out that
it''s called "comment spam", ie, related to spamming user input forms, but
all of what''s on the net seems to relate to "comment spamming" in Blog
software (WordPress, Moveable Type, especially). And of course, spam robots
harvesting email addresses. there''s actually very few solutions offered for
people that insert hyperlinks into web-forms.

Claude


Claude写道:
您可以考虑以下内容。如果这些垃圾邮件发送者关闭javascript怎么办?你的javascript在这种情况下无效。

解决方案:在客户端和服务器端进行检查。
You can, however consider the following. What if, these "spammers"
turn off javascript? Your javascript would not work in this case.

Solution: Do the check on both the client side AND server side.



感谢web.dev ...

在这个主题上做了很多谷歌搜索 - >确实发现它被称为评论垃圾评论,即与垃圾邮件用户输入表格有关,但网上的所有内容似乎都与评论垃圾邮件有关。 ;在Blog
软件(WordPress,Moveable Type,尤其是)。当然,垃圾邮件机器人还可以收集电子邮件地址。实际上很少有为人们提供将超链接插入网络表单的解决方案。


thanks web.dev ...

have done a lot of google searching on this subject --> did find out that
it''s called "comment spam", ie, related to spamming user input forms, but
all of what''s on the net seems to relate to "comment spamming" in Blog
software (WordPress, Moveable Type, especially). And of course, spam robots
harvesting email addresses. there''s actually very few solutions offered for
people that insert hyperlinks into web-forms.




底线是这样的垃圾邮件发送者几乎总是使用自动化

处理发送垃圾邮件,他们不会坐在那里填写表格。


因此在服务器处理它 - 可能识别垃圾邮件和

隔离它进行审核或者放弃它。客户端脚本无法帮助您获得
。如果链接是唯一的问题,那么在文本字段中搜索

类似URI的字符串,例如http://。


博客软件内置评论垃圾邮件工具,如果你只是使用

表格,那么你应该实现类似的东西,例如介绍一个

''确认''页面,要求所有评论在发布之前进行审核

张贴等等。

-

Rob



The bottom line is that such spammers nearly always use automated
processes to send the spam, they don''t sit there and fill-in the form.

So deal with it at the server - identify likely spam and either
quarantine it for review or just ditch it. Client-side script can''t do
much to help you. If links are the only problem, then search for
URI-like strings in text fields, e.g. "http://".

Blog software has built-in comment spam tools, if you are just using a
form, then you should implement something similar, e.g. introduce a
''confirm'' page, require all comments to be reviewed before they are
posted, etc.
--
Rob


这篇关于形式检查器过滤“链接垃圾邮件”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆