dns_adblock 318 B

12345678910
  1. #!/bin/sh
  2. if [ "$(curl https://big.oisd.nl/domainswild -I | grep -E '^Content-Type' -i | cut -d ':' -f2 | cut -d ';' -f1 | tr -d ' ')" = 'text/plain' ]
  3. then
  4. curl -L 'https://big.oisd.nl/domainswild' > /etc/dnscrypt-proxy/blocklist.txt
  5. fi
  6. /etc/init.d/dnscrypt-proxy restart
  7. /etc/init.d/dnscrypt-proxy_local restart