cloudflare_使用Cloudflare使您的网站更快,更安全

cloudflare

Cloudflare is an industry leader in the content-delivery space, reducing load and speeding up millions of websites.

Cloudflare是内容交付领域的行业领导者,可减轻负载并加快数百万个网站的速度。

What is peculiar about this provider is that it didn’t start as speed-up/performance tool, but was instead born from Project Honeypot, which was conceived as a spam and hacking protection service. To this day, this is one of Cloudflare’s major selling points: DDoS detection and protection. Their algorithms take note of visitors’ IP addresses, payloads, resources requested, and request frequency to detect malicious visitors.

该提供程序的特殊之处在于,它不是作为加速/性能工具启动的,而是由Project Honeypot诞生的,该项目被认为是垃圾邮件和黑客防护服务。 到目前为止,这是Cloudflare的主要卖点之一:DDoS检测和保护。 他们的算法记录访问者的IP地址,有效负载,请求的资源以及检测恶意访问者的请求频率。

Because it sits as a proxy between websites and all incoming traffic, Cloudflare is able to reduce strain on servers significantly, so much so that DDoS attacks won’t even reach the origin websites, as explained in this introduction. Cloudflare also provides the Always Online option, which caches a version of the user’s website and serves a limited version of it in case of origin server outage — when the original website returns 5xx or 4xx errors. It also features a full-fledged page cache.

由于Cloudflare可以充当网站与所有传入流量之间的代理,因此可以极大地减轻服务器的压力,以至于DDoS攻击甚至不会到达原始网站,如本简介中所述 。 Cloudflare还提供了“始终在线”选项,该选项可缓存用户网站的版本,并在原始服务器中断的情况下(当原始网站返回5xx或4xx错误时)提供有限版本的网站。 它还具有完整的页面缓存。

These features can be a huge advantage: they can salvage a struggling web server under heavy load, and in case of server errors, can give some breathing room to developers to figure things out.

这些功能可以带来巨大的优势:它们可以在繁重的负载下挽救一台陷入困境的Web服务器,并且在服务器发生错误的情况下,可以为开发人员提供喘息的空间,以解决问题。

cloudflare_使用Cloudflare使您的网站更快,更安全_第1张图片

It’s also available free. There are premium tiers, of course, and there are things (like additional page rules) that require paying, but the scope of Cloudflare’s free tier alone makes it worthwhile to learn its ins and outs.

它也是免费提供的。 当然,有高级级别,并且有些东西(例如其他页面规则)需要付费,但是仅Cloudflare的免费级别的范围使其值得了解其来龙去脉。

Comparison benchmarks put Cloudflare somewhere in the middle in regard to speed, but it would be hard to argue that it is the best value CDN on the market.

比较 基准将 Cloudflare的速度放在中间,但是很难说它是市场上价值最高的CDN。

设置Cloudflare (Setting Up Cloudflare)

Setting a site up with Cloudflare is very straightforward. After registering at (cloudflare.com)[http://www.cloudflare.com], we can add a new website. While the system scans for the given domain’s IP and other details, we’re offered an introductory video. Upon completion, we’re given new nameservers to set up with our registrar.

使用Cloudflare设置站点非常简单。 在(cloudflare.com)[http://www.cloudflare.com]注册后,我们可以添加一个新网站。 当系统扫描给定域的IP和其他详细信息时,我们将提供一个介绍性视频。 完成后,我们将获得新的域名服务器来与我们的注册商一起设置。

We need to register these nameservers with our registrar and wait for changes to propagate across the internet. It may take up to 24 hours.

我们需要在我们的注册商中注册这些名称服务器,并等待更改通过互联网传播。 最多可能需要24个小时。

This change means giving all control over our domain to Cloudflare. This also means that, if we have email on this domain (MX records), we need to transfer these records to Cloudflare. If we have any subdomains, they also need to be set up as respective A records in Cloudflare’s dashboard.

此更改意味着将对我们域的所有控制权交给Cloudflare。 这也意味着,如果我们在该域上有电子邮件(MX记录),则需要将这些记录转移到

你可能感兴趣的:(网络,python,java,linux,php)