DansGuardian is an award winning Open Source web content filter which currently runs on Linux, FreeBSD, OpenBSD, NetBSD, Mac OS X, HP-UX, and Solaris. It filters the actual content of pages based on many methods including phrase matching, PICS filtering and URL filtering.
Installation
Install the necessary PCRE libraries:
yum install pcre-devel
Download the latest version of DansGuardian:
Configure it:
./configure
make
make install
Change the ownership on the log file directory:
chown nobody:nobody /usr/local/var/log/dansguardian
To test it out, you can run it directly from the shell: