Loren Wilton writes: > > Also be careful of writing the usual ill thought out and draconian rules > youself like > > body MY_PORN_1 /cock/i > score MY_PORN_1 100 # eliminate evil words! > > That works just fine. Unless you maybe have a user or a client named John > Babcock.
Or to take a few examples from the real world: Google's SafeSearch filter technology incorrectly blocked many innocuous Web sites based solely on strings of letters such as "sex," "girls" or "porn" embedded in their domain names. PartsExpress.com, ALittleGirlsBoutique.com, RomansInSussex.co.uk, ArkansasExtermination.com and BassExpert.com were incorrectly identified as pornographic. And Scunthorpe has caused problems for the BBC and AOL (and probably others). As I've pointed out to our users, we're quite capable of parsing gappy words as the author intended. R I G H T ? Meaning that you really want to compress all white space before checking for your evil words. And then, "The pen is mightier than the sword" will trip your filter.