简体   繁体   English

是否有任何可产生良好结果的.NET / JAVA免费或开源SPAM检测器?

[英]Are there any .NET/ JAVA free or opensource SPAM detectors that yield good results?

I am looking for a .NET/ JAVA free or opensource SPAM detectors accesible via an API that yield good results. 我正在寻找可产生良好结果的可通过API访问的.NET / JAVA免费或开源SPAM检测器。 I would consider paying for a good service that accomplishes this as well, but ideally, I would like to go open source. 我会考虑为完成这项任务的优质服务付费,但是理想情况下,我想开源。 Does any one have any good experiences with any or recommendations? 是否有人对任何建议有良好的经验?

Ideally, I would get the text/markup to a message in memory, I would call a method from this API, and it would return a bool or likelyhood of SPAM. 理想情况下,我会将文本/标记添加到内存中的消息中,然后从该API调用方法,然后它将返回垃圾邮件或垃圾邮件的可能性。

A quick google search yielded some results, but users with experience to share are greatly appreciated. 快速的google搜索产生了一些结果,但是非常感谢有经验的用户分享。

Checkout the Akismet .NET 2.0 Api on CodePlex. 在CodePlex上签出Akismet .NET 2.0 Api

Here's an example from the CodePlex page: 这是CodePlex页面上的示例:

// Verify key
Akismet api = new Akismet("key", "http://url.com", "Test/1.0");
if (!api.VerifyKey()) throw new Exception("Key could not be verified.");

// Create comment object for testing
AkismetComment comment = new AkismetComment();
comment.Blog = "http://joel.net";
comment.UserIp = "147.202.45.202";
comment.UserAgent = "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)";
comment.CommentContent = "<a href=\"http://someone.finderinn.com\">find someone</a>";
comment.CommentType = "comment";
comment.CommentAuthor = "someone";
comment.CommentAuthorEmail = "backthismailtojerry@fastmail.fm";
comment.CommentAuthorUrl = "http://someone.finderrin.com";

// Test comment against akismet's service
bool isSpam = api.COmmentCheck(comment);

Akismet rocks. Akismet岩石。

-Charles - 查尔斯

One easy way to implement this is to setup a Google domain account for your email and let Google deal with your spam. 一种简单的实现方法是为您的电子邮件设置一个Google域帐户,然后让Google处理您的垃圾邮件。 Then you can either access that account using regular pop3 or imap api or simply forward all email to your real account. 然后,您可以使用常规pop3或imap api访问该帐户,也可以将所有电子邮件转发到您的真实帐户。

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

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