EFW Support

Support => General Support => Topic started by: mrkroket on Wednesday 04 November 2009, 04:12:21 am



Title: 2.3 Final: Bug con Content Filter. Banned sites are not being blocked
Post by: mrkroket 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.