Description:
WebContentControl is a parental control GUI (more specifically a GUI for DansGuardian+TinyProxy+FireHol).
Official website: https://launchpad.net/webcontentcontrol
Feedback is very welcome. And help too!
Please report bugs at
https://bugs.launchpad.net/webcontentcontrol
Pre-Installation:
Please make sure you have the "universe" repository enabled.
Go to System->Administration->Software sources and check the "universe" repository.
More info:
https://help.ubuntu.com/community/Repositories/Ubuntu
Installation:
There are three ways to install WebContentControl:
1)Through the PPA repositories
2)From the Debian package
3)From source
1)Through the PPA repositories
Note: Please avoid using this method for the moment, since the upgrade process isn't fixed yet. (you may loose your settings when upgrading)
Code:
deb http://ppa.launchpad.net/zohn-joidberg/ubuntu intrepid main
deb-src http://ppa.launchpad.net/zohn-joidberg/ubuntu intrepid main
See here for how to add repositories:
https://help.ubuntu.com/community/Repositories/Ubuntu
2)From the Debian package
Download the latest .deb from the site and double-click on it or by command-line:
Code:
sudo gdebi <package>.deb
3)From source
Code:
sudo apt-get install gambas2-runtime gambas2-gb-qt gambas2-gb-form gambas2-gb-form-dialog gambas2-gb-qt-kde gambas2-gb-qt-kde-html
sudo apt-get install dansguardian tinyproxy firehol
Then download the latest version on
https://launchpad.net/webcontentcontrol/+download and:
Code:
tar -xzvf webcontentcontrol-1.0.tar.gz
cd webcontentcontrol-1.0
./configure && make && sudo make install
The shortcut should be created in Applications->System tools.
If it isn't, the command-line to launch it is:
Code:
/usr/bin/webcontentcontrol
How to uninstall it:
Code:
sudo make uninstall
____________________________________
List of filtering solutions/projects:
DNS filtering:
Kiosk specific (for internet cafes, etc):
Firefox specific:
Firewalls and blocking MSN:
For Windows:
Useful links:
How it works:
Note: Tinyproxy is equivalent to Squid and Firehol is equivalent to iptables (FireHol manages iptables).
If you know other projects, useful links, etc, please tell me so I can add them to the list.
FAQ, troubleshooting and tips:
- Is user-specific configuration possible?
Yes, but not through the GUI yet.
cf:
http://www.ubuntume.com/webstrict#i_..._user_accounts
http://contentfilter.futuragts.com/w..._configuration
- If the internet doesn't work anymore or isn't filtered: Please post the contents of the following files:
Code:
/etc/dansguardian/dansguardian.conf
/etc/tinyproxy/tinyproxy.conf
/etc/firehol/firehol.conf
and also the output of this command:
- If almost everything you google gets blocked: Just turn on Google safe mode again.

- Filtering not working over wireless?
Three solutions:
1)Lock WPA interfaces by clicking on the "WPA interfaces unlocked" button.
2)Lock the firefox proxy settings from the GUI and disable/uninstall all other browsers (or lock their proxy settings to port 8080 if you know how to do it).
3)Restart FireHol after wireless has started.
- SSL not blocked?
You have to lock down the browser settings for this to work. cf explanation above.
- Dansguardian tweaking tips:
Use http://urlblacklist.com/ or http://www.shallalist.de/ (suggested by eric.duveau) 
- Also, it's useful to comment out "japanese pornography" in the weightedphraselist, as well as whitelist all webmail sites in the "exceptionsitelist".
/etc/dansguardian/lists/exceptionsitelist:
Code:
...
.Include</etc/dansguardian/lists/blacklists/mail/domains>
...
/etc/dansguardian/lists/exceptionurllist:
Code:
...
.Include</etc/dansguardian/lists/blacklists/mail/urls>
...
/etc/dansguardian/lists/weightedphraselist:
Code:
...
##.Include</etc/dansguardian/lists/phraselists/pornography/weighted_japanese> #ALPHA#
...
...because some valid sites tend to get blocked by it due to some strange encoding problems. 
- Don't forget to prevent getting any filesharing program (or configure your firewall to block ports):
/etc/dansguardian/lists/bannedsitelist:
Code:
...
.Include</etc/dansguardian/lists/blacklists/filesharing/domains>
...
/etc/dansguardian/lists/bannedurllist:
Code:
...
.Include</etc/dansguardian/lists/blacklists/filesharing/urls>
...
An interface to select categories from the blacklists directory is planned. 
- How to disable X11 forwarding in openssh:
I created a patch for this, which you can get here: http://bazaar.launchpad.net/%7Ezohn-...sableX11.patch
Download openssh-5.2p1.tar.gz from http://www.openssh.com/
Then just:
Code:
tar -xzvf openssh-5.2p1.tar.gz
cd openssh-5.2p1
patch -p2 < ../openssh-5.2p1_disableX11.patch
./configure
make
sudo make install
____________________________________
The rest of this post should now hopefully be unnecessary.
If you want to set up such a system manually without the GUI, here's a very helpful guide which also explains how it works:
http://www.pilpi.net/journal/item-985.php
=======================================
06/09/2008: UPDATE
I started uploading my code to launchpad for version control (&bug reports+ distribution):
https://launchpad.net/webcontentcontrol
I also joined the
GChildCare project and plan to help it. So this is only a project to get a working GUI quickly up and running.
Until this is the case, please follow the instructions below.
=======================================
This "Howto" is an updated version of this one:
http://ubuntuforums.org/showthread.php?t=226298
Downloads are at the bottom of this post.
Note: WebContentControl.tar.gz is meant for developers and contains the source code of a new GUI I'm working on.
The original GUI was made by nanomad. I just made a few changes so that it should work "out of the box".
I created a new thread because nanomad stopped updating the other one.
If you still encounter problems, please tell me.
Note:
Another parental control GUI is available from Ubuntu ME here:
http://www.ubuntume.com/webstrict
However, it is browser dependent, meaning that it will only work with properly configured browsers. In other words, it can easily be bypassed by using another browser or changing the browser config if it isn't locked.
An easy way to fix this is installing firehol. However, it is then also necessary to configure it correctly...
If I have time, I might try using their nice GUI with the browser-independent system from the one given here.
For Hardy and later versions:
gambas-runtime has been replaced by gambas2-runtime, so until the GUI is made compatible with the new version, you may download&install the old gambas-runtime here:
http://packages.ubuntu.com/gutsy/gambas-runtime
Troubleshooting: If you are having problems:
1)Please post the console output of the installation process (just rerun the installation and copy/paste the output before closing the terminal window)
An easier way to do this (until I add automatic log creation

):
For installation problems:
Code:
./.setup 1>install.log 2>&1
For uninstallation problems:
Code:
./.remove 1>uninstall.log 2>&1
2)If the GUI won't launch: post the output of the following command:
Code:
/usr/local/apps/parental-control/ubuntu_parental_control_gui
Bookmarks