Forbid porno sites on linux


Simpleness Parental Control - this short program will block adult web-sites on linux OS.

After you have opened the website, the program catches a domain name and checks the contents of the home page.
If more than 15 bad word will be found on the main page, the site will banned.

Install (for Ubuntu/Debian users)

echo "deb ./" | sudo tee -a /etc/apt/sources.list
sudo apt-get update
sudo apt-get install parents

Tests, optional

sudo perl parents.t

Install from sources, simple variant

wget -q -U "install" -O - | sudo bash -

Install from sources, longer variant

sudo apt-get -y install tcpdump || sudo yum -y install tcpdump
sudo mkdir /opt/parents
sudo wget -q -O /opt/parents/parents
sudo chmod +x /opt/parents/parents
For start after each reboot add "/usr/bin/perl /opt/parents/parents start" to /etc/rc.local


Licensed under the Apache License, Version 2.0.