如何阻止我的自定义论坛/博客上的垃圾邮件?
所以我有一个定制的论坛和论坛博客系统最近一直在处理大量垃圾邮件。如果是 Wordpress,我会使用 Akismet,如果是不同的通用平台,我确信我会找到一个插件。我可以下载任何类型的静态类来执行此操作吗?我正在使用 PHP。
So I have a custom built forum & blog system that as of late has been dealing with a lot of spam. If it was Wordpress I would use Akismet, if it was a different common platform I'm sure I'd find a plugin. Is there any kind of static class I can download to do this? I am using PHP.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(8)
如果你喜欢的话,我仍然会选择 Akismet。对于 WordPress 之外的使用,您可能需要支付一定的费用,具体取决于您的使用情况——检查条款和条件——但这绝对是一个选择,并且可以使用他们的 API 在 PHP 中轻松实现。您只需使用 wordpress.com 帐户中的 API 密钥即可进行访问。
基本上,您可以选择您喜欢的 PHP 客户端库 -- 我使用 Alex Potsides 的 PHP5 库 -- 插件在你的钥匙里,只有几行代码。以下是直接来自我的一个实时网站的验证的基本内容:
您只需将其推入您拥有的任何字段,Akismet 会尽力为您服务,并向您返回“是”或“否”...
I'd still go with Akismet, if you like it. For uses outside of WordPress, you may have to pay a fee for it, depending on your use -- check the terms and conditions -- but it's definitely an option and easy to implement yourself in PHP using their API. You just use the API key from a wordpress.com account for the access.
Basically, you grab yourself whichever PHP client library takes your fancy -- I use Alex Potsides' PHP5 library -- plug in your key, and it's a handful of lines of code. Here's the bare bones of the validation straight from one of my live sites:
You just shove in whichever fields you have, and Akismet does its best for you and returns you a yay or nay...
Akismet 不仅仅适用于 WordPress。他们有一个 API。
将其与 reCaptcha 结合起来,您的情况应该会好得多。
http://akismet.com/development/api/
http://code.google.com/apis/recaptcha/docs/php.html
Akismet is not just for wordpress. They have an API.
Combine that with reCaptcha, and you should be much better off.
http://akismet.com/development/api/
http://code.google.com/apis/recaptcha/docs/php.html
有许多解决方案可以阻止您网站中的垃圾邮件发送者
所有这些都是基于 php 的,您可以轻松集成到任何 CMS
There are many solutions to stop spammers in your sites
All these are php based which you can easily integrate to any CMS
我在这里为我的 php 网站使用这个 Akismet 库: http://www.achingbrain.net/stuff/ php/akismet
我只通过它运行新用户的前 10 条评论,如果它们是垃圾邮件,它会向我发送通知。
我忘了提及我们为他们的优质服务付费,但它很便宜:-)
I use this Akismet library here for my php website: http://www.achingbrain.net/stuff/php/akismet
I only run the first 10 comments from new users through it, and if they're spam, it sends me a notice.
I forgot to mention that we pay for their premium service, but it's cheap :-)
是的,Akismet 绝对是阻止垃圾邮件的最佳选择。它就像博客评论领域的 Gmail。
Yup, Akismet is definitely the best for stopping spam. It's like the Gmail of blog comments.
Akismet 和验证码都会很有用。另一个巧妙的技巧是使用隐藏的表单字段。根据我的经验,这将阻止 90% 的垃圾邮件:
如果 fauxfield 中有文本,您就知道它是垃圾邮件。垃圾邮件机器人通常会尝试填写所有字段。
至少不是万无一失的,但在低流量、非关键任务的情况下很有用。
Akismet and captcha are both going to be useful. Another neat trick is to use a hidden form field. In my experience this will stop 90% of spam:
If fauxfield has text in it, you know it's spam. Spam bots will usually try to fill in all the fields.
Not foolproof in the least, but useful in low-traffic, non-mission-critical situations.
查看验证码。您可以使用它来帮助防止机器人发帖/注册您的论坛。这不会过滤垃圾邮件,而是试图从一开始就阻止邮件发布。
编辑
另外,您实际上可以在自己的项目中使用Akismet,尽管这可能需要花钱。
Check out Captcha. You can use it to help prevent bots from posting/signing up for your forums. This doesn't filter spam but tries to prevent things from being able to post it in the first place.
Edit
Also, you can actually use Akismet in your own projects, though it may cost money.
在设置> 框
讨论并选中其他评论设置
“ 用户必须注册并登录才能发表评论”
您可以通过此功能轻松控制垃圾评论。
您可以使用 akismet 和其他插件[阻止垃圾评论][1]。
in setting > discussions and check the box
Other comment settings
" Users must be registered and logged in to comment "
you can control spam comments easily by this feature.
and you can [block spam comments][1] using akismet and other plugins.