tags:

views:

536

answers:

7

I'm looking for a spam filter that I can integrate into my ASP.NET application. I don't want any delegate services (e.g. Akismet) as I'm doing this for a high traffic website, any suggestions?

Edit: I mean a post spam filter, it's a forum based website.

Edit: Thanks for your answer but I'm not looking for a Captcha, I'm looking for a spam filter, Captcha is not a spam filter it's used for preventing automated spam but it's not a spam filter itself, a spam filter is a piece of software that scans the posts and mark them as spam or not. Actually I already have a Captcha in my application for preventing automated spam.

A: 

The technology you're looking for is a CAPTCHA, which stands for: Completely Automated Public Turing test to tell Computers and Humans Apart. It's used to make sure bots don't spam forums and other public posting sites with... well... spam.

For ASP.NET, there are quite a few:

Edit: I had taken out the Spam Filter I listed when I edited my answer, putting it back in:


It looks like someone implemented one here.

By "spam filter" do you mean CAPTCHA? Or Email spam filtering?

George Stocker
+2  A: 

If you don't want to use CAPTCHA's, because they annoy people, and you already the site up and running, you could write your own parser to filter out spam. Most spam you see is extremely blatant. Posting hundreds of links in a post. Subject, Body, and Poster name are all exactly the same. Other stuff along those lines. You could write some simple filters, like I did for my blog, to basically cut out 99% of the spam, while your users don't even realize that you are even using filtering.

Kibbee
That's impressive -- what language did you write it in, and how well is it doing? Are you thinking about releasing it to codeproject?
George Stocker
It's done with about 30 lines of REGEX statements in PHP. Basically just checking for the number of links. The rest of the stuff, like checking if the subject is the same as the body is pretty straightforward. It's stopped just about all the spam from my blog, Maybe one or two a month get through
Kibbee
A: 

Although not widely used, since comments/forum posts are typically stored in a database, an insert trigger works remarkably well which looks for certain words in comments and auto triggers a delete. Again, this isn't an ideal solution, but it works for me. There is the possibility of deleting a legit post, but then again, its sometimes near impossible to correctly decipher a captcha...

RandomNoob
+2  A: 

I use Akismet for spam filtering. There is a .NET interface for available here on CodePlex.

It works very well and the Api is pretty simple. Akismet is free for personal use (making less than $500/month), so I'm not sure about the pricing if you are making some serious money on the website.

Andrew Van Slaars
A: 

I can't recommend this because I've never used it, but I know a small company that had decent luck with A Naive Bayesian Spam Filter for C# by Jason Kester.

I would personally recommend using a 3rd party like Akismet though. Spam filtering is tough business and it is always better to delegate that to someone who can and will keep up with the spammers' techniques over time.

Stephen M. Redd
+3  A: 

You could check out nBayes, a C# implementation of Paul Graham's plan for spam

Joel Martinez
A: 

hi..even am lookin for a spam filter in my asp application. Did any of the above solutions, especially akismet, work fine for your application? please let me know.

Thanks, Geetha

Geethapriya
Actually I ended up writing my own filter. I think akismet should work fine, it's popular as far as I know but actually I didn't try it. In my case, I didn't want to make the site dependent on a web service from a third party, this is why I didn't use it. But that doesn't mean it's not reliable, it only means I'm paranoid! I was planning to use the Naive Bayesian Spam Filter for C# by Jason Kester (see the link in one of the answers above), but eventually wrote it from scratch to fit my needs.
Waleed Eissa
oh ok...cool.i was actually trying out reCaptcha..dont know how far it s gonna work..Let s see..thanks anyways for your suggestion:)
Geethapriya