Dansguardian: Difference between revisions
Jump to navigation
Jump to search
(dansguardian - first version) |
m (→Reference: fix up) |
||
Line 5: | Line 5: | ||
* [http://wiki.contribs.org/Dansguardian/ConfigFiles Config Files] |
* [http://wiki.contribs.org/Dansguardian/ConfigFiles Config Files] |
||
;Install tutorials |
|||
* [http://blog.bodhizazen.net/linux/web-content-filtering-made-easy/ Web content filtering made easy - Shadows of epiphany] |
* [http://blog.bodhizazen.net/linux/web-content-filtering-made-easy/ Web content filtering made easy - Shadows of epiphany] |
||
* [http://wiki.contribs.org/Dansguardian dansguardian (on contribs.org)] |
* [http://wiki.contribs.org/Dansguardian dansguardian (on contribs.org)] |
||
* [https://help.ubuntu.com/community/DansGuardian DansGuardian (ubuntu.com)] |
* [https://help.ubuntu.com/community/DansGuardian DansGuardian (ubuntu.com)] |
||
== Install == |
== Install == |
Revision as of 21:45, 30 March 2014
Reference
- Documentation
- Install tutorials
- Web content filtering made easy - Shadows of epiphany
- dansguardian (on contribs.org)
- DansGuardian (ubuntu.com)
Install
- To install dansguardian along with privoxy, see http://blog.bodhizazen.net/linux/web-content-filtering-made-easy/
Configuration
To reload dansguardian configuration:
sudo service dansguardian force-reload
- Fix banned url regex. Edit /etc/dansguardian/lists/bannedregexpurllist
-(sex|fuck|boob|...)+.*(\.jpg|\.wmv|\.mpg|\.mpeg|\.gif|\.mov)
+(sex|fuck|boob|...)+.*(\.jpg|\.wmv|\.mpg|\.mpeg|\.gif|\.mov)$
- Hide error message when blocked. Edit file /etc/dansguardian/languages/ukenglish/template.html (or any other language in use)
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL was not found on this server.</p>
<hr>
<address>Apache/2.2.22 Server</address>
</body></html>
- Disable anti-virus
- In dansguardian.conf, uncomment
#contentscanner = '/etc/dansguardian/contentscanners/clamdscan.conf'
- In dansguardianf1.conf, adapt line as follow:
disablecontentscan = off
- To disable it, do the opposite, i.e., comment first line, and set
disablecontentscan = on
.
- Adapt
naughtyness_limit
if necessary
- See [3]
- White-list some sites
- Add them to /etc/dansguardian/lists/exceptionsitelist (see[4])
- Site to white-list:
mail.yahoo.com mail.yimg.com
- ... or grey-list some sites
- There are sites that are still keyword filtered
- Add them to /etc/dansguardian/lists/greysitelist
- Fetch up-to-date black-list
- From urlblacklist.com
- Requires to explicit allow / forbid some categories (see [5])
Troubleshooting
- See log files
- View /var/log/dansguardian/access.log
- Search for keywords like
*DENIED*
— these explains in detail why a page is denied access. - More information here
- Advanced troubleshooting
- See [6]