finding spam?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
coolaid
Forum Newbie
Posts: 4
Joined: Mon Apr 03, 2006 4:27 am

finding spam?

Post by coolaid »

im not sure, but i think i remember a way of finding wether some form input had spam in it. like bogus strings such as "alsdhfe".


well, is there?
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: finding spam?

Post by Chris Corbyn »

coolaid wrote:im not sure, but i think i remember a way of finding wether some form input had spam in it. like bogus strings such as "alsdhfe".


well, is there?
You might want to grab a copy wordpress.... I'm pretty sure it comes bundled with a SPAM filter so you could take a look at that ;)

I've often wondered how easy it would be to get spammassin (designed for emails) to work with simple strings in PHP.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

WordPress doesn't have a SPAM filter that I'm aware of (by default,) there could be a plugin somewhere though.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

feyd wrote:WordPress doesn't have a SPAM filter that I'm aware of (by default,) there could be a plugin somewhere though.
Yeah I'm positive there's something for wordpress. Prior to version 2 when I downloaded a copy it had a spam filter included; you could customize it's behaviour too. Must be a plugin somewhere... I'll have a search.

FYI: SpamAssassin is written in Perl.... things written in Perl convert t PHP damn easy ;) You'd need to drop the bits that scan the email headers though.
Post Reply