mirror of
https://bitbucket.org/anticensority/antizapret-pac-generator-light.git
synced 2024-11-25 14:46:04 +03:00
Exclude hosts by their IP addresses in the Registry
This commit is contained in:
parent
4d6223842b
commit
485b20f36e
12
config/exclude-hosts-by-ips-dist.txt
Normal file
12
config/exclude-hosts-by-ips-dist.txt
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
^81\.91\.178\.252;
|
||||||
|
^37\.48\.77\.229;
|
||||||
|
^178\.208\.90\.38;
|
||||||
|
^213\.13\.30\.100;
|
||||||
|
^52\.169\.125\.34;
|
||||||
|
^81\.17\.19\.227;
|
||||||
|
^81\.91\.178\.242;
|
||||||
|
^5\.61\.58\.119;
|
||||||
|
^45\.81\.227\.72;
|
||||||
|
^209\.99\.40\.222;
|
||||||
|
^95\.211\.189\.202;
|
||||||
|
^34\.252\.217\.230;
|
3
parse.sh
3
parse.sh
@ -19,6 +19,9 @@ sort -u config/include-hosts-{dist,custom}.txt > temp/include-hosts.txt
|
|||||||
sort -u config/include-ips-{dist,custom}.txt > temp/include-ips.txt
|
sort -u config/include-ips-{dist,custom}.txt > temp/include-ips.txt
|
||||||
sort -u temp/include-hosts.txt result/hostlist_original.txt > temp/hostlist_original_with_include.txt
|
sort -u temp/include-hosts.txt result/hostlist_original.txt > temp/hostlist_original_with_include.txt
|
||||||
|
|
||||||
|
awk -F ';' '{split($1, a, / \| /); for (i in a) {print a[i]";"$2}}' temp/list.csv | \
|
||||||
|
grep -f config/exclude-hosts-by-ips-dist.txt | awk -F ';' '{print $2}' >> temp/exclude-hosts.txt
|
||||||
|
|
||||||
awk -f scripts/getzones.awk temp/hostlist_original_with_include.txt | grep -v -F -x -f temp/exclude-hosts.txt | sort -u > result/hostlist_zones.txt
|
awk -f scripts/getzones.awk temp/hostlist_original_with_include.txt | grep -v -F -x -f temp/exclude-hosts.txt | sort -u > result/hostlist_zones.txt
|
||||||
|
|
||||||
if [[ "$RESOLVE_NXDOMAIN" == "yes" ]];
|
if [[ "$RESOLVE_NXDOMAIN" == "yes" ]];
|
||||||
|
Loading…
Reference in New Issue
Block a user