From 030c49e325b914d50daf20feb1c4f22e8d58e8d6 Mon Sep 17 00:00:00 2001 From: Henry He Date: Mon, 1 Jun 2020 19:08:37 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=B8=80=E9=94=AE?= =?UTF-8?q?=E4=BF=AE=E6=94=B9Hosts=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 一键修改hosts.bat | 97 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 一键修改hosts.bat diff --git a/一键修改hosts.bat b/一键修改hosts.bat new file mode 100644 index 0000000..9454177 --- /dev/null +++ b/一键修改hosts.bat @@ -0,0 +1,97 @@ +@echo. >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 www.google.com >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 pixiv.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 www.pixiv.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 ssl.pixiv.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 accounts.pixiv.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 touch.pixiv.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 oauth.secure.pixiv.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 dic.pixiv.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 en-dic.pixiv.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 sketch.pixiv.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 payment.pixiv.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 factory.pixiv.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 comic.pixiv.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 novel.pixiv.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 imgaz.pixiv.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 sensei.pixiv.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 fanbox.pixiv.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 source.pixiv.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 i1.pixiv.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 i2.pixiv.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 i3.pixiv.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 i4.pixiv.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 hls1.pixivsketch.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 hls2.pixivsketch.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 hls3.pixivsketch.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 hls4.pixivsketch.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 hls5.pixivsketch.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 hls6.pixivsketch.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 hls7.pixivsketch.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 hls8.pixivsketch.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 hls9.pixivsketch.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 hls10.pixivsketch.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 hls11.pixivsketch.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 hls12.pixivsketch.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 hls13.pixivsketch.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 hls14.pixivsketch.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 hls15.pixivsketch.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 hls16.pixivsketch.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 hls17.pixivsketch.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 hls18.pixivsketch.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 hls19.pixivsketch.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 hls20.pixivsketch.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 hlsa1.pixivsketch.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 hlsa2.pixivsketch.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 hlsa3.pixivsketch.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 hlsa4.pixivsketch.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 hlsa5.pixivsketch.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 hlsa6.pixivsketch.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 hlsa7.pixivsketch.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 hlsa8.pixivsketch.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 hlsa10.pixivsketch.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 hlsa11.pixivsketch.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 hlsa12.pixivsketch.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 hlsa13.pixivsketch.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 hlsa14.pixivsketch.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 hlsa15.pixivsketch.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 hlsa16.pixivsketch.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 hlsa17.pixivsketch.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 hlsa18.pixivsketch.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 hlsa19.pixivsketch.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 hlsc1.pixivsketch.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 hlsc2.pixivsketch.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 hlsc3.pixivsketch.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 hlsc4.pixivsketch.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 hlsc5.pixivsketch.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 hlsc6.pixivsketch.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 hlse1.pixivsketch.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 hlse2.pixivsketch.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 hlse3.pixivsketch.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 hlse4.pixivsketch.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 hlse5.pixivsketch.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 hlse6.pixivsketch.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 hlse7.pixivsketch.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 hlse8.pixivsketch.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 hlse9.pixivsketch.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 hlst1.pixivsketch.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 i.pximg.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 210.140.131.220 app-api.pixiv.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 13.226.113.16 g-client-proxy.pixiv.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 210.140.131.159 d.pixiv.org >>C:\Windows\System32\Drivers\etc\hosts +@echo 210.140.92.140 pixiv.pximg.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 210.140.92.139 s.pximg.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 210.140.131.246 api.booth.pm >>C:\Windows\System32\Drivers\etc\hosts +@echo 210.140.131.220 myaccount.pixiv.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 en.wikipedia.org >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 zh.wikipedia.org #中文维基百科桌面版 >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 en.m.wikipedia.org >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 zh.m.wikipedia.org >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 zh-yue.wikipedia.org #粤文维基百科桌面版 >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 wuu.wikipedia.org #吴语维基百科桌面版 >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 ug.wikipedia.org #维吾尔文维基百科桌面版 >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 ja.wikipedia.org #日文维基百科桌面版 >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 zh.wikinews.org #中文维基新闻桌面版 >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 store.steampowered.com >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 steamcommunity.com >>C:\Windows\System32\Drivers\etc\hosts +@echo 127.0.0.1 archiveofourown.org >>C:\Windows\System32\Drivers\etc\hosts From 213f863b1a67bbc1154a6d76a5c92d945a98f0b5 Mon Sep 17 00:00:00 2001 From: Henry He Date: Wed, 3 Jun 2020 19:42:06 +0800 Subject: [PATCH 2/2] =?UTF-8?q?Update=20=E4=B8=80=E9=94=AE=E4=BF=AE?= =?UTF-8?q?=E6=94=B9hosts.bat?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 一键修改hosts.bat | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/一键修改hosts.bat b/一键修改hosts.bat index 9454177..7bade25 100644 --- a/一键修改hosts.bat +++ b/一键修改hosts.bat @@ -1,5 +1,11 @@ +%1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~s0 ::","","runas",1)(window.close)&&exit @echo. >>C:\Windows\System32\Drivers\etc\hosts +@echo # 以下Hosts内容来自Pixiv-Nginx项目(https://github.com/mashirozx/Pixiv-Nginx) >>C:\Windows\System32\Drivers\etc\hosts +@echo # Hosts start. >>C:\Windows\System32\Drivers\etc\hosts +@echo # www.google.com域名仅用于登陆验证 >>C:\Windows\System32\Drivers\etc\hosts +@echo # 如果你不需要这个功能,请把下一行删掉 >>C:\Windows\System32\Drivers\etc\hosts @echo 127.0.0.1 www.google.com >>C:\Windows\System32\Drivers\etc\hosts +@echo # Pixiv Start >>C:\Windows\System32\Drivers\etc\hosts @echo 127.0.0.1 pixiv.net >>C:\Windows\System32\Drivers\etc\hosts @echo 127.0.0.1 www.pixiv.net >>C:\Windows\System32\Drivers\etc\hosts @echo 127.0.0.1 ssl.pixiv.net >>C:\Windows\System32\Drivers\etc\hosts @@ -76,13 +82,14 @@ @echo 127.0.0.1 hlse9.pixivsketch.net >>C:\Windows\System32\Drivers\etc\hosts @echo 127.0.0.1 hlst1.pixivsketch.net >>C:\Windows\System32\Drivers\etc\hosts @echo 127.0.0.1 i.pximg.net >>C:\Windows\System32\Drivers\etc\hosts -@echo 210.140.131.220 app-api.pixiv.net >>C:\Windows\System32\Drivers\etc\hosts +@echo 210.140.131.220 app-api.pixiv.net >>C:\Windows\System32\Drivers\etc\hosts @echo 13.226.113.16 g-client-proxy.pixiv.net >>C:\Windows\System32\Drivers\etc\hosts @echo 210.140.131.159 d.pixiv.org >>C:\Windows\System32\Drivers\etc\hosts @echo 210.140.92.140 pixiv.pximg.net >>C:\Windows\System32\Drivers\etc\hosts @echo 210.140.92.139 s.pximg.net >>C:\Windows\System32\Drivers\etc\hosts @echo 210.140.131.246 api.booth.pm >>C:\Windows\System32\Drivers\etc\hosts @echo 210.140.131.220 myaccount.pixiv.net >>C:\Windows\System32\Drivers\etc\hosts +@echo # Wikipedia Start >>C:\Windows\System32\Drivers\etc\hosts @echo 127.0.0.1 en.wikipedia.org >>C:\Windows\System32\Drivers\etc\hosts @echo 127.0.0.1 zh.wikipedia.org #中文维基百科桌面版 >>C:\Windows\System32\Drivers\etc\hosts @echo 127.0.0.1 en.m.wikipedia.org >>C:\Windows\System32\Drivers\etc\hosts @@ -92,6 +99,9 @@ @echo 127.0.0.1 ug.wikipedia.org #维吾尔文维基百科桌面版 >>C:\Windows\System32\Drivers\etc\hosts @echo 127.0.0.1 ja.wikipedia.org #日文维基百科桌面版 >>C:\Windows\System32\Drivers\etc\hosts @echo 127.0.0.1 zh.wikinews.org #中文维基新闻桌面版 >>C:\Windows\System32\Drivers\etc\hosts +@echo # Steam >>C:\Windows\System32\Drivers\etc\hosts @echo 127.0.0.1 store.steampowered.com >>C:\Windows\System32\Drivers\etc\hosts @echo 127.0.0.1 steamcommunity.com >>C:\Windows\System32\Drivers\etc\hosts +@echo # Archive of our own >>C:\Windows\System32\Drivers\etc\hosts @echo 127.0.0.1 archiveofourown.org >>C:\Windows\System32\Drivers\etc\hosts +@echo # Hosts end. >>C:\Windows\System32\Drivers\etc\hosts