Ability of receive a custom adblock list
This commit is contained in:
parent
2510094461
commit
2475934a5f
|
@ -4,8 +4,8 @@ source <(curl -s https://gitea.avc.cx/borekon/scripts/raw/branch/main/colores.sh
|
||||||
ip_to_find="0.0.0.0"
|
ip_to_find="0.0.0.0"
|
||||||
deleted=0
|
deleted=0
|
||||||
kept=0
|
kept=0
|
||||||
|
domains2=${1:-$(curl -s https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts | grep -v ^# | cut -d" " -f2)}
|
||||||
domains=$(curl -s https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts | grep -v ^# | cut -d" " -f2)
|
domains=$(cat domains2 | grep -v ^# | cut -d" " -f2)
|
||||||
for j in $domains; do
|
for j in $domains; do
|
||||||
output=$(dig @192.168.1.1 $j +short)
|
output=$(dig @192.168.1.1 $j +short)
|
||||||
if [ -z "$output" ];then
|
if [ -z "$output" ];then
|
||||||
|
|
Loading…
Reference in New Issue
Block a user