{"id":4030,"date":"2021-10-08T12:41:44","date_gmt":"2021-10-08T11:41:44","guid":{"rendered":"https:\/\/unihost.com\/blog\/?p=4030"},"modified":"2026-11-13T15:30:41","modified_gmt":"2026-11-13T13:30:41","slug":"what-is-cloudflare","status":"publish","type":"post","link":"https:\/\/unihost.com\/blog\/what-is-cloudflare\/","title":{"rendered":"What Is Cloudflare and How Does It Work?"},"content":{"rendered":"<p class=\"head-text\">Cloudflare can provide DNS, reverse-proxy, caching and security services, depending on the configuration and plan. It does not replace the hosting server. The origin still runs the application and stores or retrieves the data that Cloudflare does not serve from cache.<\/p>\n<p><span style=\"font-weight: 400;\">The reason for this lies in the very foundation of the internet.<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">World Wide Web<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Internet is called a web for a reason. It doesn\u2019t have a defined center that contains every website in the world. Instead, internet consists of a multitude of knots \u2014 servers \u2014 that connect with the threads of the broadband and optic cables. Websites are located on those servers.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">But how does the internet know what server to look for a picture I want to see? How can you find the knot you need in the whole world wide web?<\/span><\/p>\n<p><span style=\"font-weight: 400;\">There are special DNS-servers to help figure out to which server to route the requests. Each server has a unique IP-address. It consists of four groups of digits, from one to three digit in each group, and is used to identify the server. Each IP links to the number of domains, such as google.com or yahoo.com.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">You can even go to the websites using those IP addresses. For example, <\/span><a href=\"https:\/\/31.13.73.36\" rel=\"nofollow nofollow noopener noreferrer\" target=\"_blank\"><span style=\"font-weight: 400;\">https:\/\/31.13.73.36<\/span><\/a><span style=\"font-weight: 400;\"> is a domain of Facebook.com. But to make it easier to remember the website, the domains are used.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Hosting companies, that rent domains and servers for the websites, create the corresponding records on their DNS servers. Local internet providers gather data from them and send it to their DNS servers. <\/span><\/p>\n<p><span style=\"font-weight: 400;\">Here\u2019s how it works in real life:<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Californian student Michael opens his browser and inputs <\/span><a href=\"https:\/\/facebook.com\" rel=\"nofollow nofollow noopener noreferrer\" target=\"_blank\"><span style=\"font-weight: 400;\">https:\/\/facebook.com<\/span><\/a><span style=\"font-weight: 400;\"> in the address bar.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Michael\u2019s computer sends a request to local provider\u2019s DNS server. The server defines, that <\/span><a href=\"https:\/\/facebook.com\" rel=\"nofollow nofollow noopener noreferrer\" target=\"_blank\"><span style=\"font-weight: 400;\">https:\/\/facebook.com<\/span><\/a><span style=\"font-weight: 400;\"> belongs to a server with an IP address of 31.13.73.36 and there is no such server on the internal network.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">The provider\u2019s server sends the request up the chain, to the national provider\u2019s server (AT&amp;T, Comcast, etc.). That one locates the server with the IP address 31.13.73.36 in Miami.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">The national provider sends the request to the server in Miami, which then routes it to the local datacenter. There it is processed and the Facebook login page is sent to Michael\u2019s computer via the same route.<\/span><\/li>\n<\/ol>\n<p><span style=\"font-weight: 400;\">All of this happens in less than a second. Michael hasn\u2019t even finished his sip of coffee and the page is already loaded. But what happens if it\u2019s not Michael from California? What if it\u2019s Ivan from Russia?<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Before Ivan\u2019s request even reaches the US, it has to go through:<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">A server of Ivan\u2019s local internet provider.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">A server of Ivan\u2019s regional internet provider.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">A server of the national provider (Rostelecom).<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">A whole chain of Europe-located servers that will send Ivan\u2019s request to the transatlantic transmitter.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">The actual transmitter, that will send Ivan\u2019s request over the Atlantic using the submarine cable.<\/span><\/li>\n<\/ol>\n<figure id=\"attachment_1697\" aria-describedby=\"caption-attachment-1697\" style=\"width: 1000px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/unihost.com\/blog\/minio.php?2017\/07\/eaaecb9b159e40388cbf48802e57c995-1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-1697 size-full\" src=\"https:\/\/unihost.com\/blog\/minio.php?2017\/07\/eaaecb9b159e40388cbf48802e57c995-1.jpg\" alt=\"Submarine cable installation\" width=\"1000\" height=\"681\" \/ title=\"What Is Cloudflare and How Does It Work? - Image 1\"><\/a><figcaption id=\"caption-attachment-1697\" class=\"wp-caption-text\">Submarine cable installation. Source: Bill Burns, Atlantic Cable.<\/figcaption><\/figure>\n<p><span style=\"font-weight: 400;\">As a result, Ivan gets the Facebook\u2019s login page not in one second, but roughly in three. And that\u2019s if the channels are relatively free. If one of them is overloaded, it may take 10-20 seconds. The requests that are delayed for 30 seconds or more are automatically denied in order not to overload the servers.<\/span><\/p>\n<p>The only way to make the websites equally fast for everyone is to locate a server with a copy of the website in each country of the world. Which is absolutely impossible, when you consider how much manpower you will need to maintain and update each of them regularly.<\/p>\n<p><span style=\"font-weight: 400;\">But there\u2019s a solution \u2014 content distribution networks (CDN).<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">How do the CDN work<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">In order to understand the mechanics of CDN, you need to know what the websites are made of. Each website\u2019s content can be divided in two categories \u2014 static and dynamic.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Static content is exactly the same for all website\u2019s users. Images, CSS, Javascript and HTML are static. A CDN can cache eligible static content from the website. This copy is called a cached copy. It is distributed to CDN servers all over the world. Next time, when Ivan decides to open his Facebook, he will get a cached copy from Moscow.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Dynamic content is generated by the website and its applications on the go. If it is a one-time generation, CDN will cache its results. If it is constantly updated in real time, CDN will request it directly from the server.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Cloudflare is one of the CDN providers. Besides caching, it offers DDoS protection and routing features, depending on the plan and configuration.<\/span><\/p>\n<h2>DNS, proxy and CDN are different functions<\/h2>\n<div style=\"overflow-x:auto;margin:24px 0;\">\n<table style=\"width:100%;min-width:560px;border-collapse:separate;border-spacing:0;border:1px solid #dbe7ee;border-radius:8px;overflow:hidden;font-size:15px;line-height:1.45;margin:0;\">\n<thead>\n<tr>\n<th style=\"background:#0099CC;color:#ffffff;text-align:left;padding:12px 14px;font-weight:600;\">Function<\/th>\n<th style=\"background:#0099CC;color:#ffffff;text-align:left;padding:12px 14px;font-weight:600;\">What it does<\/th>\n<th style=\"background:#0099CC;color:#ffffff;text-align:left;padding:12px 14px;font-weight:600;\">What remains your responsibility<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:12px 14px;border-top:1px solid #dbe7ee;vertical-align:top;background:#ffffff;font-weight:600;color:#1f3a4a;\">DNS<\/td>\n<td style=\"padding:12px 14px;border-top:1px solid #dbe7ee;vertical-align:top;background:#ffffff;\">Publishes records used to locate services<\/td>\n<td style=\"padding:12px 14px;border-top:1px solid #dbe7ee;vertical-align:top;background:#ffffff;\">Correct records and service ownership<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 14px;border-top:1px solid #dbe7ee;vertical-align:top;background:#f3f9fc;font-weight:600;color:#1f3a4a;\">Reverse proxy<\/td>\n<td style=\"padding:12px 14px;border-top:1px solid #dbe7ee;vertical-align:top;background:#f3f9fc;\">Receives supported traffic before forwarding it to the origin<\/td>\n<td style=\"padding:12px 14px;border-top:1px solid #dbe7ee;vertical-align:top;background:#f3f9fc;\">Origin configuration and access controls<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 14px;border-top:1px solid #dbe7ee;vertical-align:top;background:#ffffff;font-weight:600;color:#1f3a4a;\">CDN cache<\/td>\n<td style=\"padding:12px 14px;border-top:1px solid #dbe7ee;vertical-align:top;background:#ffffff;\">Serves eligible cached responses nearer to visitors<\/td>\n<td style=\"padding:12px 14px;border-top:1px solid #dbe7ee;vertical-align:top;background:#ffffff;\">Cache policy and correct private\/public content handling<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 14px;border-top:1px solid #dbe7ee;vertical-align:top;background:#f3f9fc;font-weight:600;color:#1f3a4a;\">Security controls<\/td>\n<td style=\"padding:12px 14px;border-top:1px solid #dbe7ee;vertical-align:top;background:#f3f9fc;\">Filter supported traffic according to enabled rules<\/td>\n<td style=\"padding:12px 14px;border-top:1px solid #dbe7ee;vertical-align:top;background:#f3f9fc;\">Application security, updates and recovery<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h3><span style=\"font-weight: 400;\">What is smart routing<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">A request from a user to the website can use different routes. For example, a request from Russia to US can go through Ukraine, Poland, Germany, Netherlands and Britain. Alternatively, it can go through Sweden, Germany and France. And the more servers it has to go through, the longer the response time is.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">You can see the map of the internet connections at <a href=\"http:\/\/global-internet-map-2012.telegeography.com\/\" rel=\"nofollow nofollow noopener noreferrer\" target=\"_blank\">Telegeography<\/a>.\u00a0<\/span><span style=\"font-weight: 400;\">Admittedly, it is a little dated by now, but it should be enough to gain a perspective.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">When the user requests dynamic content from the website that is connected to the Cloudflare, the data is sent using the high-speed channels that belong to the CDN itself or its partners. Before the transmission begins, the system calculates the fastest route. But all of this happens only if the request is validated and proven to belong to a real user \u2014 and not a part of a DDoS attack.<\/span><\/p>\n\n\t<!-- shortcode box --> <div class=\"shortcode tf_clearfix box  light-blue\"><b>DDoS <\/b><span style=\"font-weight: 400;\">is a type of a hacker\u2019s attack on the server. During the DDoS attack, the server is constantly being sent requests it has to process. If there are too many requests, the server cannot process them in real time and is forced to create a queue. Since that point, no normal user can access the server, since their requests get added to the ever expanding queue of the fake requests.<\/span><\/div> <!-- \/shortcode box -->\n<h3><span style=\"font-weight: 400;\">How does Cloudflare protect from DDoS attacks<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">If the website with Cloudflare gets a request, the system analyzes the history of the device that had sent this request on the other CloudFlare-connected websites.<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">If there is a chance that it is a part of the DDoS attack, then the request is denied.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">If the request comes from a bot or a crawler (an automatic information collector) its bandwidth to the website gets limited.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">If the request is sent by a regular user, he gets the cached copy of the website\u2019s static content, while the request for the dynamic content is being sent.<\/span><\/li>\n<\/ol>\n<p><span style=\"font-weight: 400;\">Cloudflare also offers other paid features; their availability and behavior depend on the plan and configuration.<\/span><\/p>\n<h2>Cache safely<\/h2>\n<p>Static assets are different from account pages, carts and personalized responses. Test cache rules with both signed-in and signed-out sessions. Do not cache private responses simply to improve a headline speed result. A CDN also does not fix inefficient database queries or insufficient origin capacity.<\/p>\n<h2>Keep origin HTTPS valid<\/h2>\n<p>Use an encryption mode appropriate to the application and certificate setup. Full (strict) verifies the origin certificate as well as encrypting the connection. Validate certificate names, expiry, redirects and mixed content before changing the setting.<\/p>\n<h2><span style=\"font-weight: 400;\">How to install Cloudflare on the WordPress website<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Setting up Cloudflare on WordPress is usually straightforward, but the Cloudflare dashboard and its plugin change over time. The steps and screenshots below may not match the current interface, so check the official Cloudflare documentation before changing DNS or SSL settings. First of all, you need a create a CloudFlare account.<\/span><\/p>\n<h3><span style=\"font-weight: 400;\">How to create a Cloudflare account<\/span><\/h3>\n<ol>\n<li><span style=\"font-weight: 400;\">Go to the <\/span><a href=\"https:\/\/www.cloudflare.com\/a\/sign-up\" rel=\"nofollow nofollow noopener noreferrer\" target=\"_blank\"><span style=\"font-weight: 400;\">CloudFlare registration page<\/span><\/a><span style=\"font-weight: 400;\">. Enter your email and create a password. Check the <\/span><i><span style=\"font-weight: 400;\">I agree\u2026<\/span><\/i><span style=\"font-weight: 400;\"> field. Click <\/span><i><span style=\"font-weight: 400;\">Create Account<\/span><\/i><span style=\"font-weight: 400;\">.<a href=\"https:\/\/unihost.com\/blog\/minio.php?2017\/07\/Screenshot-from-2017-04-28-10-06-30.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-970\" src=\"https:\/\/unihost.com\/blog\/minio.php?2017\/07\/Screenshot-from-2017-04-28-10-06-30.png\" alt=\"Creating a Cloudflare account\" width=\"388\" height=\"398\" \/ title=\"What Is Cloudflare and How Does It Work? - Image 2\"><\/a><\/span><\/li>\n<li><span style=\"font-weight: 400;\">Enter your website address in <\/span><i><span style=\"font-weight: 400;\">Add a website <\/span><\/i><span style=\"font-weight: 400;\">field. Click <\/span><i><span style=\"font-weight: 400;\">Scan DNS Records.<a href=\"https:\/\/unihost.com\/blog\/minio.php?2017\/07\/Screenshot-from-2017-04-28-10-13-33.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-971\" src=\"https:\/\/unihost.com\/blog\/minio.php?2017\/07\/Screenshot-from-2017-04-28-10-13-33.png\" alt=\"Adding a website to Cloudflare\" width=\"953\" height=\"165\" \/ title=\"What Is Cloudflare and How Does It Work? - Image 3\"><\/a><\/span><\/i><\/li>\n<li><span style=\"font-weight: 400;\">CloudFlare will scan your domain and show you the recommended settings. DNS records that will be protected by Cloudflare, will be marked with orange cloud. Those that won\u2019t be \u2014 with grey. You can click on the marks to turn protection on and off. Once you are done \u2014 click <\/span><i><span style=\"font-weight: 400;\">Continue<\/span><\/i><span style=\"font-weight: 400;\"> at the bottom of the page.<a href=\"https:\/\/unihost.com\/blog\/minio.php?2017\/07\/Screenshot-from-2017-04-28-10-16-01.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-972\" src=\"https:\/\/unihost.com\/blog\/minio.php?2017\/07\/Screenshot-from-2017-04-28-10-16-01.png\" alt=\"Checking the DNS records at Cloudflare\" width=\"957\" height=\"674\" \/ title=\"What Is Cloudflare and How Does It Work? - Image 4\"><\/a><\/span><\/li>\n<li><span style=\"font-weight: 400;\">If some of your DNS records are not listed \u2014 add them. In order to do this, fill in the fields above the table and click <\/span><i><span style=\"font-weight: 400;\">Add Record<\/span><\/i><span style=\"font-weight: 400;\">.<\/span><\/li>\n<li><span style=\"font-weight: 400;\">Select the plan and click <\/span><i><span style=\"font-weight: 400;\">Continue<\/span><\/i><span style=\"font-weight: 400;\">.<a href=\"https:\/\/unihost.com\/blog\/minio.php?2017\/07\/Screenshot-from-2017-04-28-10-18-36.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-973\" src=\"https:\/\/unihost.com\/blog\/minio.php?2017\/07\/Screenshot-from-2017-04-28-10-18-36.png\" alt=\"Choosing the Cloudflare pricing plan\" width=\"989\" height=\"690\" \/ title=\"What Is Cloudflare and How Does It Work? - Image 5\"><\/a><\/span><\/li>\n<li><span style=\"font-weight: 400;\">Cloudflare will give you new DNS addresses, to which you\u2019ll have to transfer your domain.<a href=\"https:\/\/unihost.com\/blog\/minio.php?2017\/07\/a6e55c1a78.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-975\" src=\"https:\/\/unihost.com\/blog\/minio.php?2017\/07\/a6e55c1a78.png\" alt=\"An example of Cloudflare DNS addresses\" width=\"959\" height=\"282\" \/ title=\"What Is Cloudflare and How Does It Work? - Image 6\"><\/a><\/span><\/li>\n<li><span style=\"font-weight: 400;\">Go into your <\/span><a href=\"https:\/\/www.cloudflare.com\/a\/account\/my-account\" rel=\"nofollow nofollow noopener noreferrer\" target=\"_blank\"><span style=\"font-weight: 400;\">Cloudflare account<\/span><\/a><span style=\"font-weight: 400;\"> and click <\/span><i><span style=\"font-weight: 400;\">View API Key<\/span><\/i><span style=\"font-weight: 400;\"> under <\/span><i><span style=\"font-weight: 400;\">Global API Key<\/span><\/i><span style=\"font-weight: 400;\">. Save the API key it gives you.<a href=\"https:\/\/unihost.com\/blog\/minio.php?2017\/07\/01c55d3785.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-976\" src=\"https:\/\/unihost.com\/blog\/minio.php?2017\/07\/01c55d3785.png\" alt=\"Cloudflare API key\" width=\"1016\" height=\"521\" \/ title=\"What Is Cloudflare and How Does It Work? - Image 7\"><\/a><\/span><\/li>\n<li><span style=\"font-weight: 400;\">Now you need to change the DNS records to the ones you\u2019ve received in the step 5.<\/span><\/li>\n<\/ol>\n<h3><span style=\"font-weight: 400;\">How to setup CloudFlare for WordPress<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">After you have setup the DNS, you need to optimize the caching settings for the Cloudlare. In WordPress you can do this via the official Cloudflare plugin.<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Log into WordPress.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Click Plugins.<a href=\"https:\/\/unihost.com\/blog\/minio.php?2017\/07\/DS_070717_098c97.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-984\" src=\"https:\/\/unihost.com\/blog\/minio.php?2017\/07\/DS_070717_098c97.png\" alt=\"Wordpress Plugin menu\" width=\"156\" height=\"137\" \/ title=\"What Is Cloudflare and How Does It Work? - Image 8\"><\/a><\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Click <\/span><i><span style=\"font-weight: 400;\">Add New<\/span><\/i><span style=\"font-weight: 400;\">.<a href=\"https:\/\/unihost.com\/blog\/minio.php?2017\/07\/DS_070717_ec8f81.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-985\" src=\"https:\/\/unihost.com\/blog\/minio.php?2017\/07\/DS_070717_ec8f81.png\" alt=\"Adding a new plugin to WordPress\" width=\"157\" height=\"129\" \/ title=\"What Is Cloudflare and How Does It Work? - Image 9\"><\/a><\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">In the Search field, enter <em>Cloudflare<\/em><\/span><span style=\"font-weight: 400;\">.<a href=\"https:\/\/unihost.com\/blog\/minio.php?2017\/07\/DS_070717_df30a6.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-986\" src=\"https:\/\/unihost.com\/blog\/minio.php?2017\/07\/DS_070717_df30a6.png\" alt=\"Searching for Cloudflare\" width=\"377\" height=\"43\" \/ title=\"What Is Cloudflare and How Does It Work? - Image 10\"><\/a><\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Find this plugin in the search results. Click<\/span><i><span style=\"font-weight: 400;\"> Install Now<\/span><\/i><span style=\"font-weight: 400;\">.<a href=\"https:\/\/unihost.com\/blog\/minio.php?2017\/07\/DS_070717_e05f00.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-987\" src=\"https:\/\/unihost.com\/blog\/minio.php?2017\/07\/DS_070717_e05f00.png\" alt=\"Installing Cloudflare on WordPress\" width=\"456\" height=\"370\" \/ title=\"What Is Cloudflare and How Does It Work? - Image 11\"><\/a><\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Wait until the installation is over and click <\/span><i><span style=\"font-weight: 400;\">Activate<\/span><\/i><span style=\"font-weight: 400;\">.<a href=\"https:\/\/unihost.com\/blog\/minio.php?2017\/07\/DS_070717_b1753a.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-988\" src=\"https:\/\/unihost.com\/blog\/minio.php?2017\/07\/DS_070717_b1753a.png\" alt=\"Activating Cloudflare\" width=\"459\" height=\"367\" \/ title=\"What Is Cloudflare and How Does It Work? - Image 12\"><\/a><\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Go to Settings &gt; Cloudflare.<a href=\"https:\/\/unihost.com\/blog\/minio.php?2017\/07\/DS_070717_2e024d.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-989\" src=\"https:\/\/unihost.com\/blog\/minio.php?2017\/07\/DS_070717_2e024d.png\" alt=\"Cloudflare Settings\" width=\"158\" height=\"270\" \/ title=\"What Is Cloudflare and How Does It Work? - Image 13\"><\/a><\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Click on <\/span><i><span style=\"font-weight: 400;\">here<\/span><\/i><a href=\"https:\/\/unihost.com\/blog\/minio.php?2017\/07\/DS_060717_f339c9.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-982\" src=\"https:\/\/unihost.com\/blog\/minio.php?2017\/07\/DS_060717_f339c9.png\" alt=\"Attaching the Cloudflare account\" width=\"876\" height=\"131\" \/ title=\"What Is Cloudflare and How Does It Work? - Image 14\"><\/a><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Enter your Cloudflare email and the API key. Click<\/span><i><span style=\"font-weight: 400;\"> Save API Credentials<\/span><\/i><span style=\"font-weight: 400;\">.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Click <\/span><i><span style=\"font-weight: 400;\">Apply<\/span><\/i><span style=\"font-weight: 400;\">, to enable the Cloudflare recommended settings. Also click <\/span><i><span style=\"font-weight: 400;\">Enable<\/span><\/i><span style=\"font-weight: 400;\">, to allow Cloudflare to handle your cache automatically.<\/span><\/li>\n<li style=\"font-weight: 400;\">Once Cloudflare asks if you are sure that you want automatic cache handling enabled, click <i>I\u2019m sure<\/i>.<\/li>\n<\/ol>\n<hr \/>\n<p>However, if you still don&#8217;t feel confident in setting up\u00a0Cloudflare for WordPress yourself, you can always hire Cloudflare experts to do it for you. Platforms like Toptal offer access to\u00a0<a href=\"https:\/\/www.toptal.com\/cloudflare\" target=\"_blank\" rel=\"noopener nofollow noopener noreferrer\" data-saferedirecturl=\"https:\/\/www.google.com\/url?q=https:\/\/www.toptal.com\/cloudflare&amp;source=gmail&amp;ust=1678780041197000&amp;usg=AOvVaw3belGTngMUjRXWJO-iEzHA\">top Cloudflare experts<\/a>\u00a0who can help you configure Cloudflare for WordPress and ensure optimal website performance and security.<\/p>\n<p><span style=\"font-weight: 400;\">Cloudflare is not a magic wand that will solve all your problems. It won\u2019t help, if your hosting is bad or your website is unoptimized. But if you need to speed up the website loading for your foreign customers, Cloudflare can be one of the options to evaluate.<\/span><\/p>\n<h2>Frequently asked questions<\/h2>\n<h3>Does Cloudflare replace hosting?<\/h3>\n<p>No. The application still needs an origin or another supported execution platform.<\/p>\n<h3>Is every response cached?<\/h3>\n<p>No. Cache eligibility depends on response type, headers and rules. Personalized content needs careful handling.<\/p>\n<h3>Can a CDN fix a slow database?<\/h3>\n<p>Not by itself. Requests that reach the application still depend on the database and origin design.<\/p>\n<p>Review the origin\u2019s requirements using <a href=\"https:\/\/unihost.com\/vps\/\">Cloud VPS hosting<\/a> or <a href=\"https:\/\/unihost.com\/dedicated\/\">dedicated servers<\/a>.<\/p>\n<!--themify_builder_content-->\n<div id=\"themify_builder_content-4030\" data-postid=\"4030\" class=\"themify_builder_content themify_builder_content-4030 themify_builder tf_clear\">\n    <\/div>\n<!--\/themify_builder_content-->\n","protected":false},"excerpt":{"rendered":"<p>Cloudflare can provide DNS, reverse-proxy, caching and security services, depending on the configuration and plan. It does not replace the hosting server. The origin still runs the application and stores or retrieves the data that Cloudflare does not serve from cache. The reason for this lies in the very foundation of the internet. World Wide [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":1764,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-4030","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-webdev","has-post-title","has-post-date","has-post-category","has-post-tag","has-post-comment","has-post-author",""],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>What Is Cloudflare? CDN, DNS and Security Explained<\/title>\n<meta name=\"description\" content=\"Learn how Cloudflare DNS, CDN and security services relate to your origin server. Understand setup, caching and service limitations.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/unihost.com\/blog\/what-is-cloudflare\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What Is Cloudflare? CDN, DNS and Security Explained\" \/>\n<meta property=\"og:description\" content=\"Learn how Cloudflare DNS, CDN and security services relate to your origin server. Understand setup, caching and service limitations.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/unihost.com\/blog\/what-is-cloudflare\/\" \/>\n<meta property=\"og:site_name\" content=\"Unihost.com Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/unihost\" \/>\n<meta property=\"article:published_time\" content=\"2021-10-08T11:41:44+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-13T13:30:41+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/unihost.com\/blog\/minio.php?2017\/03\/logo7.png\" \/>\n\t<meta property=\"og:image:width\" content=\"200\" \/>\n\t<meta property=\"og:image:height\" content=\"34\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Alex Shevchuk\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@unihost\" \/>\n<meta name=\"twitter:site\" content=\"@unihost\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Alex Shevchuk\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"9 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/unihost.com\\\/blog\\\/what-is-cloudflare\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/unihost.com\\\/blog\\\/what-is-cloudflare\\\/\"},\"author\":{\"name\":\"Alex Shevchuk\",\"@id\":\"https:\\\/\\\/unihost.com\\\/blog\\\/#\\\/schema\\\/person\\\/92e127fbc9a0ce4ca134886442a54474\"},\"headline\":\"What Is Cloudflare and How Does It Work?\",\"datePublished\":\"2021-10-08T11:41:44+00:00\",\"dateModified\":\"2026-11-13T13:30:41+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/unihost.com\\\/blog\\\/what-is-cloudflare\\\/\"},\"wordCount\":1844,\"publisher\":{\"@id\":\"https:\\\/\\\/unihost.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/unihost.com\\\/blog\\\/what-is-cloudflare\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/unihost.com\\\/blog\\\/minio.php?2017\\\/07\\\/cloudflare.svg\",\"articleSection\":[\"WebDev\"],\"inLanguage\":\"en\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/unihost.com\\\/blog\\\/what-is-cloudflare\\\/\",\"url\":\"https:\\\/\\\/unihost.com\\\/blog\\\/what-is-cloudflare\\\/\",\"name\":\"What Is Cloudflare? CDN, DNS and Security Explained\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/unihost.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/unihost.com\\\/blog\\\/what-is-cloudflare\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/unihost.com\\\/blog\\\/what-is-cloudflare\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/unihost.com\\\/blog\\\/minio.php?2017\\\/07\\\/cloudflare.svg\",\"datePublished\":\"2021-10-08T11:41:44+00:00\",\"dateModified\":\"2026-11-13T13:30:41+00:00\",\"description\":\"Learn how Cloudflare DNS, CDN and security services relate to your origin server. Understand setup, caching and service limitations.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/unihost.com\\\/blog\\\/what-is-cloudflare\\\/#breadcrumb\"},\"inLanguage\":\"en\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/unihost.com\\\/blog\\\/what-is-cloudflare\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en\",\"@id\":\"https:\\\/\\\/unihost.com\\\/blog\\\/what-is-cloudflare\\\/#primaryimage\",\"url\":\"https:\\\/\\\/unihost.com\\\/blog\\\/minio.php?2017\\\/07\\\/cloudflare.svg\",\"contentUrl\":\"https:\\\/\\\/unihost.com\\\/blog\\\/minio.php?2017\\\/07\\\/cloudflare.svg\",\"caption\":\"cloudflare\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/unihost.com\\\/blog\\\/what-is-cloudflare\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Unihost\",\"item\":\"https:\\\/\\\/unihost.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Blog\",\"item\":\"https:\\\/\\\/unihost.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"What Is Cloudflare and How Does It Work?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/unihost.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/unihost.com\\\/blog\\\/\",\"name\":\"Unihost.com Blog\",\"description\":\"Web hosting, Online marketing and Web News\",\"publisher\":{\"@id\":\"https:\\\/\\\/unihost.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/unihost.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/unihost.com\\\/blog\\\/#organization\",\"name\":\"Unihost\",\"alternateName\":\"Unihost\",\"url\":\"https:\\\/\\\/unihost.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en\",\"@id\":\"https:\\\/\\\/unihost.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/unihost.com\\\/blog\\\/minio.php?2026\\\/01\\\/minio.png\",\"contentUrl\":\"https:\\\/\\\/unihost.com\\\/blog\\\/minio.php?2026\\\/01\\\/minio.png\",\"width\":300,\"height\":300,\"caption\":\"Unihost\"},\"image\":{\"@id\":\"https:\\\/\\\/unihost.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/unihost\",\"https:\\\/\\\/x.com\\\/unihost\",\"https:\\\/\\\/instagram.com\\\/unihost\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/unihost-com\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/unihost.com\\\/blog\\\/#\\\/schema\\\/person\\\/92e127fbc9a0ce4ca134886442a54474\",\"name\":\"Alex Shevchuk\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/37068b7d8dd334ae091ca77c586798519f5157257b25f6bc5dbe0daa5f828510?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/37068b7d8dd334ae091ca77c586798519f5157257b25f6bc5dbe0daa5f828510?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/37068b7d8dd334ae091ca77c586798519f5157257b25f6bc5dbe0daa5f828510?s=96&d=mm&r=g\",\"caption\":\"Alex Shevchuk\"},\"description\":\"Alex Shevchuk is the Head of DevOps with extensive experience in building, scaling, and maintaining reliable cloud and on-premise infrastructure. He specializes in automation, high-availability systems, CI\\\/CD pipelines, and DevOps best practices, helping teams deliver stable and scalable production environments. LinkedIn: https:\\\/\\\/www.linkedin.com\\\/in\\\/alex1shevchuk\\\/\",\"url\":\"https:\\\/\\\/unihost.com\\\/blog\\\/author\\\/alex-shevchuk\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What Is Cloudflare? CDN, DNS and Security Explained","description":"Learn how Cloudflare DNS, CDN and security services relate to your origin server. Understand setup, caching and service limitations.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/unihost.com\/blog\/what-is-cloudflare\/","og_locale":"en_US","og_type":"article","og_title":"What Is Cloudflare? CDN, DNS and Security Explained","og_description":"Learn how Cloudflare DNS, CDN and security services relate to your origin server. Understand setup, caching and service limitations.","og_url":"https:\/\/unihost.com\/blog\/what-is-cloudflare\/","og_site_name":"Unihost.com Blog","article_publisher":"https:\/\/www.facebook.com\/unihost","article_published_time":"2021-10-08T11:41:44+00:00","article_modified_time":"2026-11-13T13:30:41+00:00","og_image":[{"width":200,"height":34,"url":"https:\/\/unihost.com\/blog\/minio.php?2017\/03\/logo7.png","type":"image\/png"}],"author":"Alex Shevchuk","twitter_card":"summary_large_image","twitter_creator":"@unihost","twitter_site":"@unihost","twitter_misc":{"Written by":"Alex Shevchuk","Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/unihost.com\/blog\/what-is-cloudflare\/#article","isPartOf":{"@id":"https:\/\/unihost.com\/blog\/what-is-cloudflare\/"},"author":{"name":"Alex Shevchuk","@id":"https:\/\/unihost.com\/blog\/#\/schema\/person\/92e127fbc9a0ce4ca134886442a54474"},"headline":"What Is Cloudflare and How Does It Work?","datePublished":"2021-10-08T11:41:44+00:00","dateModified":"2026-11-13T13:30:41+00:00","mainEntityOfPage":{"@id":"https:\/\/unihost.com\/blog\/what-is-cloudflare\/"},"wordCount":1844,"publisher":{"@id":"https:\/\/unihost.com\/blog\/#organization"},"image":{"@id":"https:\/\/unihost.com\/blog\/what-is-cloudflare\/#primaryimage"},"thumbnailUrl":"https:\/\/unihost.com\/blog\/minio.php?2017\/07\/cloudflare.svg","articleSection":["WebDev"],"inLanguage":"en"},{"@type":"WebPage","@id":"https:\/\/unihost.com\/blog\/what-is-cloudflare\/","url":"https:\/\/unihost.com\/blog\/what-is-cloudflare\/","name":"What Is Cloudflare? CDN, DNS and Security Explained","isPartOf":{"@id":"https:\/\/unihost.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/unihost.com\/blog\/what-is-cloudflare\/#primaryimage"},"image":{"@id":"https:\/\/unihost.com\/blog\/what-is-cloudflare\/#primaryimage"},"thumbnailUrl":"https:\/\/unihost.com\/blog\/minio.php?2017\/07\/cloudflare.svg","datePublished":"2021-10-08T11:41:44+00:00","dateModified":"2026-11-13T13:30:41+00:00","description":"Learn how Cloudflare DNS, CDN and security services relate to your origin server. Understand setup, caching and service limitations.","breadcrumb":{"@id":"https:\/\/unihost.com\/blog\/what-is-cloudflare\/#breadcrumb"},"inLanguage":"en","potentialAction":[{"@type":"ReadAction","target":["https:\/\/unihost.com\/blog\/what-is-cloudflare\/"]}]},{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/unihost.com\/blog\/what-is-cloudflare\/#primaryimage","url":"https:\/\/unihost.com\/blog\/minio.php?2017\/07\/cloudflare.svg","contentUrl":"https:\/\/unihost.com\/blog\/minio.php?2017\/07\/cloudflare.svg","caption":"cloudflare"},{"@type":"BreadcrumbList","@id":"https:\/\/unihost.com\/blog\/what-is-cloudflare\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Unihost","item":"https:\/\/unihost.com\/"},{"@type":"ListItem","position":2,"name":"Blog","item":"https:\/\/unihost.com\/blog\/"},{"@type":"ListItem","position":3,"name":"What Is Cloudflare and How Does It Work?"}]},{"@type":"WebSite","@id":"https:\/\/unihost.com\/blog\/#website","url":"https:\/\/unihost.com\/blog\/","name":"Unihost.com Blog","description":"Web hosting, Online marketing and Web News","publisher":{"@id":"https:\/\/unihost.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/unihost.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en"},{"@type":"Organization","@id":"https:\/\/unihost.com\/blog\/#organization","name":"Unihost","alternateName":"Unihost","url":"https:\/\/unihost.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/unihost.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/unihost.com\/blog\/minio.php?2026\/01\/minio.png","contentUrl":"https:\/\/unihost.com\/blog\/minio.php?2026\/01\/minio.png","width":300,"height":300,"caption":"Unihost"},"image":{"@id":"https:\/\/unihost.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/unihost","https:\/\/x.com\/unihost","https:\/\/instagram.com\/unihost","https:\/\/www.linkedin.com\/company\/unihost-com"]},{"@type":"Person","@id":"https:\/\/unihost.com\/blog\/#\/schema\/person\/92e127fbc9a0ce4ca134886442a54474","name":"Alex Shevchuk","image":{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/secure.gravatar.com\/avatar\/37068b7d8dd334ae091ca77c586798519f5157257b25f6bc5dbe0daa5f828510?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/37068b7d8dd334ae091ca77c586798519f5157257b25f6bc5dbe0daa5f828510?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/37068b7d8dd334ae091ca77c586798519f5157257b25f6bc5dbe0daa5f828510?s=96&d=mm&r=g","caption":"Alex Shevchuk"},"description":"Alex Shevchuk is the Head of DevOps with extensive experience in building, scaling, and maintaining reliable cloud and on-premise infrastructure. He specializes in automation, high-availability systems, CI\/CD pipelines, and DevOps best practices, helping teams deliver stable and scalable production environments. LinkedIn: https:\/\/www.linkedin.com\/in\/alex1shevchuk\/","url":"https:\/\/unihost.com\/blog\/author\/alex-shevchuk\/"}]}},"_links":{"self":[{"href":"https:\/\/unihost.com\/blog\/wp-json\/wp\/v2\/posts\/4030","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unihost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unihost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unihost.com\/blog\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/unihost.com\/blog\/wp-json\/wp\/v2\/comments?post=4030"}],"version-history":[{"count":6,"href":"https:\/\/unihost.com\/blog\/wp-json\/wp\/v2\/posts\/4030\/revisions"}],"predecessor-version":[{"id":9262,"href":"https:\/\/unihost.com\/blog\/wp-json\/wp\/v2\/posts\/4030\/revisions\/9262"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/unihost.com\/blog\/wp-json\/wp\/v2\/media\/1764"}],"wp:attachment":[{"href":"https:\/\/unihost.com\/blog\/wp-json\/wp\/v2\/media?parent=4030"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unihost.com\/blog\/wp-json\/wp\/v2\/categories?post=4030"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unihost.com\/blog\/wp-json\/wp\/v2\/tags?post=4030"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}