Originally Posted By: Tomao
That's a lot of regex patterns. There has to be a shorter, condensed method to combat the spammers.


If you're worried about a certain type of bot, then a single regex is probably enough (I've done it several times using a single line of code). However, if you're trying to rid something of ALL spam, it takes a LOT of checks to see if its spam or not.

As the poster above me pointed out, 20 lines of code isn't nearly enough to stop all spam. Though, the code posted will probably stop quite a bit of it.


Yar