Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- #uh
- disad='https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt'
- dismal='https://s3.amazonaws.com/lists.disconnect.me/simple_malware.txt'
- distra='https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt'
- dismvt='https://s3.amazonaws.com/lists.disconnect.me/simple_malvertising.txt'
- curl $disad $dismal $distra $dismvt >> ~/hosts/data/disconnect-filters/hosts
- sed -i -e '/#/d' -e '/ /d' -e '/^$/d' -e 's/^/0.0.0.0 /' ~/hosts/data/disconnect-filters/hosts
- sort -u ~/hosts/data/disconnect-filters/hosts -o ~/hosts/data/disconnect-filters/hosts
- cd ~/hosts || exit
- python updateHostsFile.py --auto --replace
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement