How To Filter Web Contents With DansGuardian In Ubuntu 14


DansGuardian is an open source web content filter which currently runs on Linux systems, including Ubuntu. It allows you to filter content on web pages based on phrases, text and URL. When configured correctly, it will block inappropriate content as well as content not suitable for children.

If you’re looking for a simple content filtering system in Ubuntu, then you may want to take a look at DansGuardian. In this tutorial, I’ll show you how to install and configure DansGuardian in Ubuntu.

Objectives:

  • Install and configure DansGuardian in Ubuntu
  • Enjoy!

 

To get started, press Ctrl – Alt – T on your keyboard to open Terminal. When it opens, run the commands below to install DansGuardian and Squid.

sudo apt-get install dansguardian squid

 

Next, run the commands below to open DansGuardian’s config file.

sudo gedit /etc/dansguardian/dansguardian.conf

 

Then find the highlighted line shown below and delete it. Or just comment it out by adding the ( # ) before the line. Save when done.

 

dansguardian_oneiric_2

 

Next, run the commands below to open Squid config file

sudo gedit /etc/squid/squid.conf

 

Then find the line shown below and add the option ( transparent ). Save the file when done.

http_port 3128 transparent

 

dansguardian_oneiric_4

 

Finally, open Firefox and click ‘Tool –> Preferences –> Advanced –> Network’ and choose Manual proxy configurations. Then add the IP address and port # shown.

127.0.0.1                                  8080

 

dansguardian_oneiric_5

 

Restart your computer and test it.

 

dansguardian_oneiric_6

 

Enjoy!

 

To start DansGuardian and Squid, run the commands below:

sudo service dansguardian start




sudo service squid start

Please share if you like it on:



Leave a Comment

Your email address will not be published. Required fields are marked *

14 thoughts on “How To Filter Web Contents With DansGuardian In Ubuntu