This commit is contained in:
233boy
2018-01-28 22:25:52 +08:00
parent c7e3dc959a
commit 47950f8d83
42 changed files with 219106 additions and 0 deletions

9
config/hosts.sh Normal file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
# 生成要屏蔽的域名... MVPS HOSTS....
curl "http://winhelp2002.mvps.org/hosts.txt" -o hosts.txt
sed -i '/^#/d; /localhost/d; /^$/d; s/0.0.0.0 //g; s/ //' hosts.txt
sed -i 's/#\(.*\)//g' hosts.txt
sed -i '/^\s*$/d' hosts.txt
sed -i 's/^/"/; s/\s*$/",/' hosts.txt
sed -i '$s/,//' hosts.txt