垃圾邮件被发布到网站

发布于 2024-07-20 04:22:46 字数 208 浏览 4 评论 0原文

我认为这是机器人,或者类似的东西。 我们的网站上有论坛,每天都会有数千次尝试发布垃圾邮件。 这些实际上从未进入数据库,通常是通过抛出 ViewState 或 EventValidation 异常。 我不确定我是否应该真正担心。 我真的很想对这些机器人做点什么。 他们不仅浪费了我们的资源,而且试图筛选所有这些错误以找到真正的错误也有点烦人。 有什么建议么?

I assume it's bots, or something like them. We have forums on our website and daily we get 1000's of attempts to post spam. These never actually make it into the database, usually by throwing a ViewState or EventValidation exception. I'm not sure if I should even really be concerned. I'd really like to do something about these bots. Not only are they wasting our resources but it's more than a little annoying trying to sift through all these errors to find the real errors. Any suggestions?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

聽兲甴掵 2024-07-27 04:22:46

听起来这不是内容问题。 用户看不到垃圾邮件,因为绝大多数提交的内容都格式错误。 您有几个选择,具体取决于您对软件的控制:

  1. 如果您编写了论坛软件,或者能够/愿意修改它,您可以捕获最常见的异常这些破碎的提交抛出。 (听起来您已经识别了这些异常。)您可以将这些异常写入不同的“垃圾邮件日志”或类似的日志,这将允许您进行统计和报告。
  2. 使用垃圾邮件日志中的数据,甚至您当前记录的数据,您可以识别经常发送这些不良提交的 IP 或范围,并在防火墙处阻止它们 。 不过,如果这确实是垃圾邮件,那么他们很可能有办法绕过它,因为这是一个非常基本的垃圾邮件拦截策略。
  3. 也有可能这不是垃圾邮件,而是一个糟糕的浏览器。 如果您可以将用户代理信息添加到异常/垃圾邮件日志,您也许能够跟踪它。 您可能会很幸运,结果可能会发现,针对 IE5Mac 或 Mini Opera 或类似的东西修复表单不仅可以防止这些异常,而且还可以增加您的访客数量。

除非这些提交对您网站的性能产生了可衡量的影响,否则我认为做更多的事情并没有多大用处。 添加验证码并不能阻止垃圾邮件的提交,而只能阻止垃圾邮件的成功提交(目前看来这不是问题)。 此时唯一值得您花时间的就是将不良提交分成单独的日志。

It sounds like this isn't a content problem. Users don't see the spam, because the vast majority of the submissions are somehow mis-formatted. You've got a couple of options, depending on the control you have over your software:

  1. If you wrote the forum software, or are able/comfortable with modifying it, you could catch the most common exceptions that these broken submissions throw. (It sounds like you've already identified those exceptions.) You could write those exceptions to a different "spam log" or some such, which would allow you to do stats and reporting down the road.
  2. Using either the data from your spam log, or maybe even what you have currently logging, you could identify IPs or ranges that often send these bad submissions and block them at your firewall. If this is realy spamming, though, chances are that they have ways to get around it, since that's a pretty basic spam-blocking strategy.
  3. It's also possible that this isn't spam, but instead it's a bad browser. If you could add User-Agent information to the exception/spam logs, you might be able to trace that. You might get lucky and it might turn out that fixing your forms for IE5Mac or Mini Opera or something like that would not only prevent these exceptions but also bump your visitor numbers.

Unless these submissions are making a measurable impact on the performance of your site, I don't think there's going much use in doing a lot more than that. Adding CAPTCHAs wouldn't prevent spam from being submitted, just from being successfully submitted (which it doesn't sound like is a problem right now). The only thing that's worth your time at this point is breaking the bad submissions into a separate log.

就像说晚安 2024-07-27 04:22:46

我相信验证码就是为了解决这个问题而设计的。

I believe CAPCHA was designed to fix this problem.

辞取 2024-07-27 04:22:46

最佳解决方案取决于论坛的受欢迎程度(用户数量)。

大多数论坛软件都有验证码和相关技术的插件。 这就是您想要的大型网站。 对于小型网站,您可以通过简单地在提交表单中添加一些随机问题(例如“您是人类吗?”)来作弊。 如果他们不在输入框中输入“是”,他们就不会通过您的(图灵?)测试。 大多数垃圾邮件发送者实际上并不访问您的网站,他们只是运行脚本来查找已知的论坛软件或明显的评论表单。

作为对您最后一条评论的回应,您无法阻止真正的人类向您的网站发送垃圾邮件(即使拒绝链接也是不够的)。 如果不关闭您的网站,您当然无法阻止任何人向您发送数据。 您应该简单地让版主删除通过您的验证码的任何垃圾邮件。

Best solution depends on the popularity (number of users) on your forum.

Most forum software have plug-ins for Captcha and related technologies. This is what you want for a large site. For a small site you can cheat by simply adding some random question to the submission form like "Are you human?" If they don't type "yes" in the input box they don't pass your (Turing?) test. Most spammers don't actually visit your site, they simply run scripts looking for known forum software or obvious comment forms.

In response to your last comment you can't stop an actual human spamming your site (even denying links is not enough). You certainly can't stop anyone sending you data without turning off your website. You should simply have moderators to remove any spam that gets through your captcha.

别想她 2024-07-27 04:22:46

您可以查看网络服务器的日志文件,看看这些连接来自什么类型的“用户代理”。
IE/Firefox 等浏览器具有类似“Mozilla/4.0(兼容;MSIE 7.0;Windows NT 6.0)”的用户代理签名。

机器人可能会有(一些)特定的用户代理签名,您可以可以将它们添加到服务器配置文件中的黑名单中,以便您的服务器将忽略来自它们的请求。

另外,您应该花一点时间阅读

http://www.kloth.net/internet/bottrap .php

You could look at your webserver's log files and see what type of 'User Agent' those connections are coming from.
Browsers such as IE/Firefox have a User Agent signature of something along the lines of 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)'

The bots will likely have a (few) specific User Agent signature(s), you could add these to a black list in your server's configuration files so that your server will just ignore requests from them.

Also you should take a minute to read through

http://www.kloth.net/internet/bottrap.php

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文