English 中文(简体)
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. 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.

A quick google search yielded some results, but users with experience to share are greatly appreciated.

最佳回答

Checkout the Akismet .NET 2.0 Api on CodePlex.

Here s an example from the CodePlex page:

// 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.

-Charles

问题回答

One easy way to implement this is to setup a Google domain account for your email and let Google deal with your spam. Then you can either access that account using regular pop3 or imap api or simply forward all email to your real account.





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签