As to the first and last on your list: Punt. Get somebody else to make a list, then follow it religiously. Get somebody else to point the finger of blame at. There are lists; the most important of which is probably the "seven dirty words" supreme court rulling in the US, and probably similar things in other countries. See also Regex::Common, which includes a regex for testing them.

Non-plaintext text-like things can, for the most part, be scanned by semi-automatic means -- there's PDF parsers on CPAN, msword can be scanned normaly -- strings will show you the text -- though sometimes you will catch cases where there was "bad" language that was later deleted, because word tends to append, at least in "fast save" mode.

Unfornatly, doing images requires hardcore AI. Beyond that, it's completly impossible. For example, a picture of a woman's breasts is acceptable in some countries, in some, it's acceptable if talking about medical things, in some, it's simply unacceptable. For that matter, some places, pictures of women's /faces/ are obscene. Other places, pictures of people at all are considered graven images. The last sort probably don't have computers, though, because they most likely consider them evil.

If you want to do this generaly, you have to moderate by trusted moderaters. Sorry.


Warning: Unless otherwise stated, code is untested. Do not use without understanding. Code is posted in the hopes it is useful, but without warranty. All copyrights are relinquished into the public domain unless otherwise stated. I am not an angel. I am capable of error, and err on a fairly regular basis. If I made a mistake, please let me know (such as by replying to this node).


In reply to Re: Content "Censorshop" : Kid friendliness by theorbtwo
in thread Content "Censorshop" : Kid friendliness by knexus

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.