Recently on a mailing list, somone asked about setting up web filtering for children.

While nothing beats supervision, som fairly effective and simple webfiltering can be setup on a linux based pc by combining squid with the jesred redirector.

Basically, create the jesred files as follows in /etc/squid and add the lines from the bottom file into your squid.conf. This plus std tranparent proxying does quite a good job. Yes, I know theres very easy ways around it, but by the time the kids figure that out, you're not going to stop them anymore ;-)

jesred.acl (ip's preceded by a "!" are open access)
----------

!192.168.1.1/32
!192.168.1.2/32
192.168.0.0/24

jesred.conf
-----------

allow = /etc/squid/jesred.acl
rules = /etc/squid/jesred.rules

jesred.rules
------------

# Allow Rules

regex ^http://.*internode.on.net/.*
regex ^https://.*internode.on.net/.*
regex ^http://.*rss.video.msn.com/.*
regex ^https://.*rss.video.msn.com/.*
regex ^http://.*runonce.msn.com/.*
regex ^https://.*runonce.msn.com/.*

# All others match this which shows a denied page
regex ^http://.* http://192.168.1.1/denied.html

squid.conf (add these lines)
----------

redirect_program /usr/bin/jesred
redirect_children 5

Topics