Not logged in. · Lost password · Register
Forum: News and announcements RSS
Spam filter
Avatar
Yves (Administrator) #1
User title: UNB developer & webmaster
Member since Jan 2004 · 3855 posts · Location: Erlangen, Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Subject: Spam filter
Today's anonymous link posting made me quickly scratch down a simple spam filter plug-in for UNB. It mainly calculates the HTML tags and BBCode tags ratio to the entire posting length and counts the number of links per posting character. If any of these values is too high, the post will be rejected as spam. No further check is done right now, there's still the option to use block words and sum a spam score for each of them or use a URI blocklist like SURBL. Especially for the link density, there's much more restrictive limits for guests than for registered users. Let's see how well it works, maybe I should also add some kind of logging to see when it actually stops a posting. (Currently, the error log will simply contain an entry if something was blocked, but not what exactly and why.)

For this to work, I have added a new plug-in hook post.verifyaccept, you can find information about it on the plug-in development documentation page.

You're free to try spamming in the Playground forum and see how well it works. I'll include the plug-in source code in the next development snapshot of UNB, which will be earlier if anybody wants to see it. ;)

PS: I've just seen that I've uploaded the spam filter with debug output. Maybe not a bad thing for the beginning. Of course it'll be turned off later.
♪ ...nanananah, all in all we’re just brilliant thieves, nanananah... ♪♬
This post was edited on 2006-07-16, 22:54 by Yves.
TimoGoebel #2
Member since Nov 2005 · 20 posts · Location: Germany
Group memberships: Members
Show profile · Link to this post
Am I going to write this in german or english? Well, let's stick to english so everybody can understand.

I can't download the new devel snapshot (2006-07-16) on the download page (only 2006-06-26 is displayed) though the new snapshot is mentioned in the changelog from the download page. What's the problem?
This post was edited on 2006-07-23, 22:02 by TimoGoebel.
Avatar
Yves (Administrator) #3
User title: UNB developer & webmaster
Member since Jan 2004 · 3855 posts · Location: Erlangen, Germany
Group memberships: Administrators, Members
Show profile · Link to this post
The change log has nothing to do with file releases. I need to pack a new release so that it becomes available for download. Not today... I try to think at it tomorrow.
♪ ...nanananah, all in all we’re just brilliant thieves, nanananah... ♪♬
TimoGoebel #4
Member since Nov 2005 · 20 posts · Location: Germany
Group memberships: Members
Show profile · Link to this post
Ok, thanks a lot.
And probably: Good Night! ;-)
Avatar
Yves (Administrator) #5
User title: UNB developer & webmaster
Member since Jan 2004 · 3855 posts · Location: Erlangen, Germany
Group memberships: Administrators, Members
Show profile · Link to this post
There you have it. :) Including the long-planned HTTP headers check.
♪ ...nanananah, all in all we’re just brilliant thieves, nanananah... ♪♬
bigbang (Guest) #6
No profile available.
Link to this post
Thanks man,
Awesome..
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
This board is powered by the Unclassified NewsBoard software, 20120620-dev, © 2003-2011 by Yves Goergen
Page created in 156.6 ms (104.3 ms) · 73 database queries in 116.7 ms
Current time: 2013-05-23, 12:11:50 (UTC +02:00)