Welcome, Guest. Please login or register.
Did you miss your activation email?
Monday 16 December 2024, 06:05:53 am

Login with username, password and session length

Visit the Official Endian Reference Manual  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 5 Guests 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 11455 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 20 queries.
Powered by SMF 1.1 RC2 | SMF © 2001-2005, Lewis Media Design by 7dana.com