The problem is that any script restrictive enough to catch everything will also flag legitimate posts (as mentioned above). Probably the best thing to do is score users on the number of bad words they use, and if the count goes over a certain total number and a certain average number per post, then have them banned automatically. This avoids the problem of people seeing their post has been blocked and then making creative variations (since they won't know you're counting the bad words until the count slays them), and it should be pretty easy to look up people who are high on the bad word ranking but haven't yet been officially banned by you (as opposed to auto-banned) and check for genuine bad words in their posts.

Needless to say, an exact match for a bad word would be scored high, whereas a match once characters have been removed (or added - symbols are often used in place of letters) would be scored less. One might debate that a swear word creative enough to defeat all algorithms is not as damaging as a regular swear word anyhow.


In reply to Re: prohibiting certain strings by TedPride
in thread prohibiting certain strings by keiusui

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.