cooldude832 Posted July 13, 2007 Share Posted July 13, 2007 I know I can write out a complete profanity filter, but does anyone have one prebuilt or have any ideas with regex on blocking derivations of words? the basic idea i got is <?php $badwords = array("bad1","bad2","Bad3"); $string = str_replace($badwords,"",$string); ?> lets say bad1 can be used as cat or cated or cating or cats or cates or catly get the idea? Quote Link to comment Share on other sites More sharing options...
trq Posted July 13, 2007 Share Posted July 13, 2007 Search the board.. this has been asked about many times before. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.