I'm sysadmin at a college. All our web traffic used to go through this big expensive Solaris box that used commercial content filtering software to protect the student kiddies from sites they shouldn't look at. Lots of people were always complaining to me that the students were looking at sites they shouldn't be allowed to look at, and lots of other people complained that they were banned from sites which had nothing wrong with them.

One day the hard disk on this proxy server died so as a temporary solution I pulled out an old pentium75 and put linux on it and downloaded a perl script which did web proxying. Management immediately complained that there was now no content filtering so I added a bit of code to the proxy script which went something like:

if ($buffer =~ /naughty_word|another_naughty_word|XXX Sex/)
$buffer = "You're not allowed to look at this web page!";

It worked great. I now get less complaints from the people who thought our filtering was too liberal and from those who thought it was too restrictive than I ever did when running the expensive and sophisticated commercial filtering software. The p75 linux box with its perl script has stayed right where I left it ever since.


In reply to Web proxying and filtering by miked

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.