Code: Select all
else if (eregi(" ass.",$comments)) {printf("<font color=#ffffff>Post unacceptable."); $why="Used word beginning with ass";}why I placed this RFH on the advanced board is I can use an array of blacklisted ass. words (and or white lists) to disallow posts but how do I identify if a posting has both an allowable and a blacklisted word???
When using the code above I blacklist every ass word. I want posts like "I assure you the assembly meets association rules" to go through
BUT and here is the kicker (for me at least) depending on my if structure posts like "take a look at the assembly <span style='color:blue' title='I'm naughty, are you naughty?'>smurf</span>" will get through because I will have a whitelist match on assembly and thus jump out of my else if ...
Do you begin to see the complexity? Has anyone else tackled this kind of filtering of their forums/guestbooks???