cdn的使用
- 首先介绍使用的浏览器插件
- 三款插件
- URLRedirector
- Gooreplacer
- header
首先介绍使用的浏览器插件
某些网站我们使用当地的IP或者DNS无法解析,或者链接速度过慢,那么如果借助浏览器插件,把我们浏览器的访问网址重定向,或者说走代理,这样我们连接上我们想要上的网站的速度就会快的多。
三款插件
URLRedirector
URLRedirector是推荐的插件,如果我们使用Google浏览器,那么点击这里就可以在线安装。
在线规则:
- 不需要修改hosts直接可以在线更新
此处的地址规则包括很多,可以点进去查看。
- 极客族在线规则 [^1] :http://raw.githack.com/fengyc/URLRedirector/master/tools/rules_geekzu.json
- 烧饼在线规则:http://raw.githack.com/fengyc/URLRedirector/master/tools/rules_lolinet.json
- jsdelivr 详情在这里。
[^1] 具体包括:
在这里插入代码片
- 需要更新hosts[^1]才能更新https://raw.githubusercontent.com/地址的规则
比如此处,此处仅仅是为了访问谷歌验证。
https://raw.githubusercontent.com/fengyc/URLRedirector/master/tools/gooreplacer.gson
*[^1] 需要在hosts添加:
# GitHub Start
52.74.223.119 github.com
192.30.253.119 gist.github.com
54.169.195.247 api.github.com
185.199.111.153 assets-cdn.github.com
151.101.76.133 raw.githubusercontent.com
151.101.108.133 user-images.githubusercontent.com
151.101.76.133 gist.githubusercontent.com
151.101.76.133 cloud.githubusercontent.com
151.101.76.133 camo.githubusercontent.com
151.101.76.133 avatars0.githubusercontent.com
151.101.76.133 avatars1.githubusercontent.com
151.101.76.133 avatars2.githubusercontent.com
151.101.76.133 avatars3.githubusercontent.com
151.101.76.133 avatars4.githubusercontent.com
151.101.76.133 avatars5.githubusercontent.com
151.101.76.133 avatars6.githubusercontent.com
151.101.76.133 avatars7.githubusercontent.com
151.101.76.133 avatars8.githubusercontent.com
# GitHub End
下图是正在使用的规则:
Gooreplacer
Gooreplacer也是一个拦截/重定向 URL && 修改 Headers插件。谷歌浏览器可以在这里下载安装。
header
header管理浏览器请求,包括修改请求头和响应头、重定向请求、取消请求。谷歌浏览器可以在这里下载。