Richard Davey wrote: > and that's it - I pass any string I need to this whenever someone > posts a message, subject, etc etc and it hasn't failed me yet :) > (unless the bad word isn't in your list of course!)
To guard against 'lame' impressions of words to be filtered, you might also check all combinations of variations of lettering of each undesired word. You can do this programmatically without have to list them all. i.e. l replaced with digit 1 or any l looking characters with byte code > 128 o replace with digit 0 or any o looking characters with byte code > 128 f replaced with any f looking characters with byte code > 128 Read a spample erectile dysfunction or pain medication mail to get the idea. Definition: spample - Spam samples; a sampling of spam. -- Richard A. DeVenezia -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php