Files
nixos/hosts/genesis/adblockUpdate.sh
T

12 lines
397 B
Bash
Raw Normal View History

2023-08-25 15:49:33 -05:00
#!/usr/bin/env bash
set -ex
curl -s https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts | sed '1,33d' > /etc/adblock_hosts
# Custom domains that I need to preserve for some reason
2023-08-25 15:59:48 -05:00
for f in "segment.com" "segment.io" "branch.io" "dev.visualwebsiteoptimizer.com"; do
sed -i -e "/${f}/d" /etc/adblock_hosts # Blocks Trelly content for house investors
done
2023-08-25 15:49:33 -05:00
systemctl restart dnsmasq