2019-12-13 00:11:21 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
function log() {
|
|
|
|
echo -e "\033[33m$@\033[0m"
|
|
|
|
}
|
|
|
|
|
|
|
|
log "Importing rules…"
|
2019-12-25 14:54:57 +01:00
|
|
|
date +%s > "last_updates/rules.txt"
|
2019-12-16 19:07:35 +01:00
|
|
|
cat rules_adblock/*.txt | grep -v '^!' | grep -v '^\[Adblock' | ./adblock_to_domain_list.py | ./feed_rules.py zone
|
|
|
|
cat rules_hosts/*.txt | grep -v '^#' | grep -v '^$' | cut -d ' ' -f2 | ./feed_rules.py zone
|
|
|
|
cat rules/*.list | grep -v '^#' | grep -v '^$' | ./feed_rules.py zone
|
|
|
|
cat rules_ip/*.txt | grep -v '^#' | grep -v '^$' | ./feed_rules.py ip4network
|
|
|
|
cat rules_asn/*.txt | grep -v '^#' | grep -v '^$' | ./feed_rules.py asn
|
2019-12-13 08:23:38 +01:00
|
|
|
|
2019-12-13 00:11:21 +01:00
|
|
|
cat rules/first-party.list | grep -v '^#' | grep -v '^$' | ./feed_rules.py zone --first-party
|
|
|
|
cat rules_ip/first-party.txt | grep -v '^#' | grep -v '^$' | ./feed_rules.py ip4network --first-party
|
2019-12-13 08:23:38 +01:00
|
|
|
cat rules_asn/first-party.txt | grep -v '^#' | grep -v '^$' | ./feed_rules.py asn --first-party
|
|
|
|
|
|
|
|
./feed_asn.py
|
2019-12-13 00:11:21 +01:00
|
|
|
|