Welcome, Guest. Please login or register.
Did you miss your activation email?
Sunday 24 November 2024, 11:47:49 am

Login with username, password and session length

Download the latest community FREE version  HERE
14261 Posts in 4377 Topics by 6517 Members
Latest Member: Sandro
Search:     Advanced search
+  EFW Support
|-+  Support
| |-+  General Support
| | |-+  2.3 Final: Bug con Content Filter. Banned sites are not being blocked
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: 2.3 Final: Bug con Content Filter. Banned sites are not being blocked  (Read 10205 times)
mrkroket
Hero Member
*****
Offline Offline

Posts: 495


« on: Wednesday 04 November 2009, 04:12:21 am »

See: http://bugs.endian.it/view.php?id=2300

Symptons: Well known porn sites (hustler, playboy) are not being blocked by content filter, even with updated URL blacklists. Regular expressions filtering still works.

Cause: Bug in restart content filter script, it overwrites insteand append custom blacklists. So the system is only using the custom blacklist domain filter, removing any other domain blacklist.

Quickfix: Append custom files instead of replacing. Use at your own risk:
cp -p /usr/local/bin/restartdansguardian.py /usr/local/bin/ORI_restartdansguardian.py
cat /usr/local/bin/ORI_restartdansguardian.py | sed -e 's/sitelist" % number, "w")/sitelist" % number, "a")/g' >/usr/local/bin/restartdansguardian.py

What i do is to make a copy of the original script, and then to change the "w" to "a" on lines 308 and 318. you can also edit the files and manually change those two "w" chars to "a".
This will append the custom lists on the main blacklist file, instead overwriting it.
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Page created in 0.047 seconds with 17 queries.
Powered by SMF 1.1 RC2 | SMF © 2001-2005, Lewis Media Design by 7dana.com