URL 缩短器垃圾邮件
最近,我开始通过 URL 缩短器将垃圾邮件 URL 接收到我的论坛软件中。过去,它们很容易被域阻止,但我无法完全阻止 URL 缩短器的域,因为我也看到了一些有效的用法。
关于如何管理这些垃圾邮件 URL(以及使用它的垃圾邮件发送者)有什么最佳实践吗?
Lately I'm starting to receive spam URLs into my forum software via URL shortener. In the past, they are easy to block by domain, but I can't exactly block the domain for URL shortener since I'm seeing some valid usage as well.
Any best practice on how to manage these spam URLs (and spammers that are using it)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您还可以在提交帖子时执行类似 http://www.untiny.me/ 的操作。基本上,发送 HTTP 请求并捕获“HTTP 301”响应。然后,您可以检查要重定向到的 URL,并根据您的策略拒绝/允许。
例如:
用
<====
标记的相关行You could also do something like http://www.untiny.me/ when a post is submitted. Basically, send an HTTP request and capture the "HTTP 301" response. You can then examine the URL you're being redirected to and deny/allow based on your policy.
For example:
Relevant lines marked by
<====
某种形式的 CAPCHA 可能是个好主意。如果您在允许用户发帖之前需要注册,请将其粘贴在您的注册表中。否则,在接受帖子之前,可以将其粘贴到用户发帖的任何地方作为要求。
Some form of CAPCHA might be a good idea. If you required registration prior to allowing a user to post, stick it in your registration form. Otherwise, maybe stick it wherever the user posts from as a requirement prior to accepting a post.