Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用 SwitchHosts 自动更新系统 hosts #1

Open
Constaline opened this issue Sep 21, 2020 · 9 comments
Open

使用 SwitchHosts 自动更新系统 hosts #1

Constaline opened this issue Sep 21, 2020 · 9 comments
Labels
enhancement New feature or request

Comments

@Constaline
Copy link

Constaline commented Sep 21, 2020

下载安装 SwitchHosts

https://onedrive-hosts.learningman.top/dns.cache
添加为远程 hosts 地址,并设置自动更新时间。

SwitchHosts 会运行在后台自动更新 hosts _(:з」∠)_

作者Edit:现在可以使用 https://onedrive-hosts.learningman.top/ 作为有效的远端地址。

@Zxilly
Copy link
Owner

Zxilly commented Sep 21, 2020

好东西

@Zxilly Zxilly pinned this issue Sep 21, 2020
@Zxilly
Copy link
Owner

Zxilly commented Sep 22, 2020

不过不建议使用https://raw.githubusercontent.com/Zxilly/OnedriveHostsGenerator/master/dns.cache,这个文件实际上是测试的时候生成的,并不会自动更新。
而且github的连通性也很差)

@Zxilly Zxilly added the good first issue Good for newcomers label Oct 3, 2020
@Zxilly Zxilly added enhancement New feature or request and removed good first issue Good for newcomers labels Jan 28, 2021
@Constaline
Copy link
Author

可以把 hosts 文件推送到 github ,然后使用 jsdelivr 访问?

https://cdn.jsdelivr.net/gh/user/repo@version/file

@Zxilly
Copy link
Owner

Zxilly commented May 4, 2022

jsdelivr也墙了吧,非要说的话可能可以CI构建然后扔到release,不过感觉没啥必要

@Constaline
Copy link
Author

jsdelivr 又能访问了 = =

@realwuyou
Copy link

请问现在还能用于网页版直接访问吗?刚刚直接试了一组hosts好像不能访问,好像现在改host不能用于浏览网页版的OneDrive了

@Zxilly
Copy link
Owner

Zxilly commented Jun 20, 2023

你可以抓包检测一下,确认是hosts这种方法失效了,还是有没有被覆盖到的域名

@chengnan049
Copy link

jsdelivr 也墙了吧,非要说的话可能可以 CI 构建然后扔到 release,不过感觉没啥必要

那就看看符不符合「渺软公益」的要求吧

@Zxilly
Copy link
Owner

Zxilly commented May 18, 2024

@chengnan049 没必要,现在跑在vercel上,一样的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants