Re: which file holds the Web Filter setting
Posted by
hans2 on
Feb 16, 2016; 4:55pm
URL: https://itus.accessinnov.com/which-file-holds-the-Web-Filter-setting-tp74p80.html
user8446 wrote
Now that you mentioned it and I never paid attention because I don't use the filtering on the shield but the fw_upgrade script only updates ads and malicious. All of the other categories are NOT updated and are static lists in /etc/itus/lists. However, you can selectively choose "ads" or "malicious" to update or not.
the
UCI system has some quiet neat features that we can use. With
uci get e2guardian.e2guardian.content_<VAR> you can read the e2guardian config file.
so i've added to the
fw_upgrade script these lines:
# update ads rules
# To prevent the ads rules from updating put # in front (# uupdate_ads_rules)
if [ $(uci get e2guardian.e2guardian.content_ads) = 1 ]; then
update_ads_rules
sleep 1
fi
# update malicious sites rules
# To prevent the malicious rules from updating put # in front (# update_malicious_rules)
if [ $(uci get e2guardian.e2guardian.content_malicious) = 1 ]; then
update_malicious_rules
sleep 1
fi
Who knows how the other lists are updated? If I check /etc/itus/lists I notice that the other files also have a recent time stamp.
No more: Shield Pro v1, Chaos Calmer, FW 1.51 SP1