免费 cdn,使用 cloudflare 加速你的网站

介绍

cloudflare 是一家国外的 CDN 加速服务商,提供免费和付费的加速和网站保护服务。

注册

访问 https://dash.cloudflare.com/sign-up 填写账号密码进行注册

添加域名

只需要填写顶级域名,譬如 kangxuanpeng.com
填写域名

选择套餐

按需选择,本文选择 0元免费套餐

代理 dns 域名

选择需要 cdn 代理的域名,选中状态是有颜色的云朵,非选中则是灰色 点击云朵图标可以切换

更改域名服务商

提示需要更改域名服务商

以下是 namesilo.com 服务商的更改步骤

选中域名记录,点最后一个按钮

按 cloudfare 要求更改

更改成功,1到48小时生效

选择 SSL 配置

按需设置

cdn 已生效

看到以下页面内容即表示 cdn 加速已生效

验证

前后 ping 网站响应的 ip 已变更

C:\Users\HongXunPan>ping www.kangxuanpeng.com

正在 Ping www.kangxuanpeng.com [xx.xx.xx.xx] 具有 32 字节的数据:
来自 xx.xx.xx.xx 的回复: 字节=32 时间=518ms TTL=48
来自 xx.xx.xx.xx 的回复: 字节=32 时间=345ms TTL=48
请求超时。
来自 xx.xx.xx.xx 的回复: 字节=32 时间=273ms TTL=47

xx.xx.xx.xx 的 Ping 统计信息:
    数据包: 已发送 = 4,已接收 = 3,丢失 = 1 (25% 丢失),
往返行程的估计时间(以毫秒为单位):
    最短 = 273ms,最长 = 518ms,平均 = 378ms

C:\Users\HongXunPan>ping www.kangxuanpeng.com

正在 Ping www.kangxuanpeng.com [104.31.90.70] 具有 32 字节的数据:
来自 104.31.90.70 的回复: 字节=32 时间=267ms TTL=48
来自 104.31.90.70 的回复: 字节=32 时间=265ms TTL=50
来自 104.31.90.70 的回复: 字节=32 时间=266ms TTL=50
来自 104.31.90.70 的回复: 字节=32 时间=268ms TTL=50

104.31.90.70 的 Ping 统计信息:
    数据包: 已发送 = 4,已接收 = 4,丢失 = 0 (0% 丢失),
往返行程的估计时间(以毫秒为单位):
    最短 = 265ms,最长 = 268ms,平均 = 266ms

多次访问网站,可以观察到部分请求已转移到 cdn 服务器上了

成功!

查看统计分析

查看已走 cdn 缓存的请求

还有很多设置可以自己发掘,按需配置
Responses
  1. Hi friends, pleasant article and pleasant urging commented here, I am truly enjoying by these.

    Reply
  2. I am actually thankful to the holder of this website who has shared this impressive piece of writing at at this time.

    Reply
  3. Hello! I know this is kind of off topic but I was wondering if you knew where I could locate a captcha plugin for my comment form? I'm using the same blog platform as yours and I'm having problems finding one? Thanks a lot!

    Reply
  4. Hmm it seems like your website ate my first comment (it was super long) so I guess I'll just sum it up what I submitted and say, I'm thoroughly enjoying your blog. I too am an aspiring blog writer but I'm still new to the whole thing. Do you have any helpful hints for inexperienced blog writers? I'd definitely appreciate it.

    Reply
  5. I know this if off topic but I'm looking into starting my own weblog and was wondering what all is needed to get set up? I'm assuming having a blog like yours would cost a pretty penny? I'm not very internet smart so I'm not 100% certain. Any tips or advice would be greatly appreciated. Thanks

    Reply
  6. She told NBC News that she could possibly have sold the winning ticket on Tuesday to a group of players who had pooled their revenue.

    Reply