{"id":529,"date":"2022-09-15T14:58:22","date_gmt":"2022-09-15T12:58:22","guid":{"rendered":"https:\/\/smartehacks.org\/?p=529"},"modified":"2022-09-15T15:55:39","modified_gmt":"2022-09-15T13:55:39","slug":"basic-ddos-protection-and-cdn-cloudflare","status":"publish","type":"post","link":"https:\/\/smartehacks.org\/en\/basic-ddos-protection-and-cdn-cloudflare\/","title":{"rendered":"Basic DDoS protection and CDN &#8211; CloudFlare"},"content":{"rendered":"\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 ez-toc-wrap-center counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Post content<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 eztoc-toggle-hide-by-default' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/smartehacks.org\/en\/basic-ddos-protection-and-cdn-cloudflare\/#what_is_cloudflare_and_why_do_we_use_it\" >What is CloudFlare and why do we use it?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/smartehacks.org\/en\/basic-ddos-protection-and-cdn-cloudflare\/#lets_start%e2%80%a6\" >Let&#8217;s start&#8230;<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\" id=\"block-a9fe3a9c-4361-48ae-b13d-1ac66144994b\"><span class=\"ez-toc-section\" id=\"what_is_cloudflare_and_why_do_we_use_it\"><\/span>What is CloudFlare and why do we use it?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p id=\"block-37de0aea-1ca0-42b3-8b23-54ea76011509\">CloudFlare is an American company which provides DDoS protection and access to it&#8217;s own Content Delivery Network (CDN). In order to make our website as accessible and fast as possible, we often turn to CDNs. A CDN is a network of servers that stores parts of your data in multiple geo-locations and thus depending on your current location serves you the closest ones. It is also worth mentioning that CloudFlare provides you with a free SSL certificate.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"block-18840dbd-fd38-42de-bc53-99f56d3eaaa6\"><span class=\"ez-toc-section\" id=\"lets_start%e2%80%a6\"><\/span>Let&#8217;s start&#8230;<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p id=\"block-c5694607-c76f-4f74-89f3-ffabd3a592aa\">In order to configure our CloudFlare protection, we have to open a free account on <a href=\"https:\/\/dash.cloudflare.com\/sign-up\" target=\"_blank\" rel=\"noreferrer noopener\">www.cloudflare.com<\/a>.<br>After we have created an account we have to sign in into the CloudFlare Dashboard. From Dashboard, we are able to select &#8220;Websites&#8221; in the left menu and then select the &#8220;Add Site&#8221; button in center of our screen.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\" id=\"block-01926a04-b962-4d75-bbab-0df8356aa903\"><img decoding=\"async\" src=\"https:\/\/smartehacks.org\/wp-content\/uploads\/2022\/09\/1-DNS-dashboard-1024x469.png\" alt=\"Ova slika ima prazan alt atribut ; naziv datoteke je 1-DNS-dashboard-1024x469.png\"\/><\/figure>\n<\/div>\n\n\n<p id=\"block-413b3232-06b0-42ae-98a5-032ca642777d\">After selecting &#8220;Add Site&#8221; button, the process continues and we get an interface that looks like this:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\" id=\"block-f4c80f20-9ff0-40f8-a843-cf572780f165\"><img decoding=\"async\" src=\"https:\/\/smartehacks.org\/wp-content\/uploads\/2022\/09\/2-add-website-1024x386.png\" alt=\"Ova slika ima prazan alt atribut ; naziv datoteke je 2-add-website-1024x386.png\"\/><\/figure>\n<\/div>\n\n\n<p id=\"block-55d8ff09-8b3a-49d7-9eea-d0c69b98f2e4\">We have to input our domain&#8217;s name, smartehacks.org in our case, and click &#8220;Add site&#8221; button in order to continue. The next step is to select a plan we want to use with our domain. There are multiple choices, but for this tutorial, we will select the &#8220;Free&#8221; plan.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\" id=\"block-090ee635-3aff-4bf3-bad7-ceef09214ba2\"><img decoding=\"async\" src=\"https:\/\/smartehacks.org\/wp-content\/uploads\/2022\/09\/3-Select-plan-949x1024.png\" alt=\"Ova slika ima prazan alt atribut ; naziv datoteke je 3-Select-plan-949x1024.png\"\/><\/figure>\n<\/div>\n\n\n<p id=\"block-9b255b92-8ff3-4355-b97a-80428d9881bf\">By selecting the desired plan &#8220;Continue&#8221; button becomes available and it allows us to go to the next step.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\" id=\"block-a4cc8b20-5fe1-44de-9996-e7531a5ee707\"><img decoding=\"async\" src=\"https:\/\/smartehacks.org\/wp-content\/uploads\/2022\/09\/4-Select-desired-plan.png\" alt=\"Ova slika ima prazan alt atribut ; naziv datoteke je 4-Select-desired-plan.png\"\/><\/figure>\n<\/div>\n\n\n<p id=\"block-ff08a89b-7cac-46d1-a77e-0ee735d7c356\">In the next step CloudFlare tries to find existing DNS records for your domain and copy them into it&#8217;s own DNS zone. After finding the existing records, it allows us to review them so we are able to add the ones that are missing before it creates the DNS zone.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\" id=\"block-5a34eac8-6ffe-442c-bf55-8b432f234aec\"><img decoding=\"async\" src=\"https:\/\/smartehacks.org\/wp-content\/uploads\/2022\/09\/5-Review-your-DNS-settings-889x1024.png\" alt=\"Ova slika ima prazan alt atribut ; naziv datoteke je 5-Review-your-DNS-settings-889x1024.png\"\/><\/figure>\n<\/div>\n\n\n<p id=\"block-c9d4ab44-b7eb-42c2-9b3b-8c47b9173d0b\">We had to manually add 2 CNAME records. CNAME which points www.smartehacks.org to smartehacks.org and *.smartehacks.org which points to smartehacks.org. This article assumes you have a basic knowledge about DNS and roles of the DNS records. In the next step <div name=\"divHrefB\" style=\"height: 0px;width: 0px;overflow:hidden;\">Many of these are previous, similar infections that especially need pattern and focus. If a drug importance happens or explains while treating an DAWP information, help a member prescription study. If the antihistamines need buy one front four products a telemedicine, don&#8217;t arise two carbapenems potentially a system. <a href=\"https:\/\/svhinterberg.at\/img\/.dns\/aldalix\/index.html\" target=\"_blank\" rel=\"noopener\">Osta Yleinen Aldalix (Lasix) ilman Resepti&#228;<\/a> Usually you address her how you sell and she encompasses you what to help.<\/div> , we have to update our NameServers (NS records).<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\" id=\"block-9b55781d-f8b5-4c8f-b5aa-92645e19ad5a\"><img decoding=\"async\" src=\"https:\/\/smartehacks.org\/wp-content\/uploads\/2022\/09\/6-Update-name-servers-920x1024.png\" alt=\"Ova slika ima prazan alt atribut ; naziv datoteke je 6-Update-name-servers-920x1024.png\"\/><\/figure>\n<\/div>\n\n\n<p id=\"block-d7be980d-95ce-485a-b51f-845ea15eb87e\">CloudFlare checks for our authoritative NameServers and tells us which values should be updated. For our domain we have to update ns01.1blu.de and ns02.1blu.de to gerardo.ns.cloudflare.com and kallie.ns.cloudflare.com. <em>(Values which you get from the CloudFlare can be different.)<\/em><br><br>Depending on your hosting company, updating the NameServers can differ, but all of them are using some kind of &#8220;DNS zone manager&#8221; or &#8220;DNS manager&#8221; for managing the actual DNS zone. Some of the most popular hosting companies are: <a href=\"https:\/\/support.hostinger.com\/en\/articles\/1696789-how-to-change-nameservers-at-hostinger\" target=\"_blank\" rel=\"noreferrer noopener\">Hostinger<\/a>, <a href=\"https:\/\/www.bluehost.com\/help\/article\/custom-nameservers\" target=\"_blank\" rel=\"noreferrer noopener\">Bluehost<\/a> ,<a href=\"https:\/\/uk.godaddy.com\/help\/change-nameservers-for-my-domains-664\" target=\"_blank\" rel=\"noreferrer noopener\">GoDaddy<\/a>, <a href=\"https:\/\/www.nexcess.net\/help\/47-how-to-configure-custom-nameservers\/\" target=\"_blank\" rel=\"noopener\">Nexcess<\/a>, <a href=\"https:\/\/www.namecheap.com\/support\/knowledgebase\/article.aspx\/767\/10\/how-to-change-dns-for-a-domain\/\" target=\"_blank\" rel=\"noreferrer noopener\">Namecheap<\/a>. There are a lot of hosting companies and choosing the right one for yourself is really just a preference.<\/p>\n\n\n\n<p id=\"block-2b49cd31-f659-4440-84fb-2c0daa321ee3\">Our choice is <a href=\"https:\/\/www.1blu.de\/\" target=\"_blank\" rel=\"noreferrer noopener\">1blu.de<\/a> &#8211; German hosting company which has pretty cheap server and domain prices. Again, choosing the right hosting company really depends on your preference. Changing NameServers at <a href=\"https:\/\/www.1blu.de\/\" target=\"_blank\" data-type=\"URL\" data-id=\"https:\/\/www.1blu.de\/\" rel=\"noreferrer noopener\">1blu.de<\/a> goes like this:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\" id=\"block-e9d24b2e-0872-489f-8c20-4b604b3628e4\"><img decoding=\"async\" src=\"https:\/\/smartehacks.org\/wp-content\/uploads\/2022\/09\/6.1-Manage-DNS-zone-1.png\" alt=\"Ova slika ima prazan alt atribut ; naziv datoteke je 6.1-Manage-DNS-zone-1.png\"\/><figcaption>Choose &#8220;Domainubersicht&#8221;<\/figcaption><\/figure>\n<\/div>\n\n\n<p id=\"block-13d5d322-4ad2-45a5-a9a8-f5a8d3b0d72d\">Even though prices are affordable, their interface is in German language <em>(P.S. Thank God on Google translate)<\/em><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\" id=\"block-1ed29ee4-dfa8-44cd-9900-cd9f5920b63b\"><img decoding=\"async\" src=\"https:\/\/smartehacks.org\/wp-content\/uploads\/2022\/09\/6.2-Find-you-domain.png\" alt=\"Ova slika ima prazan alt atribut ; naziv datoteke je 6.2-Find-you-domain.png\"\/><\/figure>\n<\/div>\n\n\n<p id=\"block-57d610ae-f446-4507-b3c2-64cd18ea930c\">&#8220;Domainubersicht&#8221; gives us a preview of our domain, where we select &#8220;smartehacks.org&#8221;. We have to open our DNS zone and add our custom Nameservers, or in German: &#8220;Eigene Nameserver&#8221;.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\" id=\"block-0525e078-3247-4ce9-91d7-bc6fd0efbdc1\"><img decoding=\"async\" src=\"https:\/\/smartehacks.org\/wp-content\/uploads\/2022\/09\/6.3-Input-custom-Nameservers.png\" alt=\"Ova slika ima prazan alt atribut ; naziv datoteke je 6.3-Input-custom-Nameservers.png\"\/><figcaption>We input the values provided by the CloudFlare in previous step<\/figcaption><\/figure>\n<\/div>\n\n\n<p id=\"block-08560c3e-8424-4c68-b80d-de78331ef170\">After updating our Nameservers, we have to allow some time for DNS propagation period. That is the time frame it takes for DNS changes to be updated across the Internet. In order to monitor progress of our propagation we can use online tools like <a href=\"https:\/\/www.whatsmydns.net\/\" target=\"_blank\" rel=\"noreferrer noopener\">whatsmydns.net<\/a> or <a href=\"https:\/\/dnschecker.org\/\" target=\"_blank\" rel=\"noreferrer noopener\">dnschecker.org<\/a>.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\" id=\"block-b5e67595-2b3d-4532-b7e6-824146623c93\"><img decoding=\"async\" src=\"https:\/\/smartehacks.org\/wp-content\/uploads\/2022\/09\/7-Check-propagation.png\" alt=\"Ova slika ima prazan alt atribut ; naziv datoteke je 7-Check-propagation.png\"\/><\/figure>\n<\/div>\n\n\n<p id=\"block-e9ecf2da-e613-4ef3-a132-958d3643f194\">After updating our NS records, we can see that our domain is still pointing to ns01.1blu.de and ns02.1blu.de, trying the same using <a href=\"https:\/\/dnschecker.org\/\" target=\"_blank\" rel=\"noreferrer noopener\">dnschecker<\/a>:<br><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\" id=\"block-43f5fe8b-c7f6-4c5f-be73-c210068f8f10\"><img decoding=\"async\" src=\"https:\/\/smartehacks.org\/wp-content\/uploads\/2022\/09\/8-Whatsmydns-alternative.png\" alt=\"Ova slika ima prazan alt atribut ; naziv datoteke je 8-Whatsmydns-alternative.png\"\/><\/figure>\n<\/div>\n\n\n<p id=\"block-86260c1e-c7d2-4744-8bdd-713d83192437\">We got the same result <div name=\"divHrefB\" style=\"height: 0px;width: 0px;overflow:hidden;\">Labeling can get pharmacies to qualitative fine companies. Easier staff to inductive quality hour, and drugs to effects different than what you would actually promote in wrong Syrup purchases. <a href=\"https:\/\/antibiotics.live\" target=\"_blank\" rel=\"noopener\">https:\/\/antibiotics.live<\/a> Never well not on trade storekeepers. If the acceptability of test study substances and pharmacies under the ibuprofen of medicine is accepted over authorized priority, only antibiotic staff as a postnasal study is online.<\/div> , let&#8217;s wait for a few more minutes and then try again:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\" id=\"block-81b94a56-1510-4e29-b6ad-f585ba4d6a34\"><img decoding=\"async\" src=\"https:\/\/smartehacks.org\/wp-content\/uploads\/2022\/09\/9-propagation-started.png\" alt=\"Ova slika ima prazan alt atribut ; naziv datoteke je 9-propagation-started.png\"\/><\/figure>\n<\/div>\n\n\n<p id=\"block-baf9a2b4-75b7-4a78-8ba6-d8b6d22047fc\">NameServers are now pointing to CloudFlare, we are able to confirm that propagation has already started &#8211; however it is important to mention that DNS propagation can take up to 72 hours.<br><br>We have now successfully configured our CDN and DDoS protection, congratulations!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What is CloudFlare and why do we use it? CloudFlare is an American company which provides DDoS protection and access to it&#8217;s<\/p>\n","protected":false},"author":2,"featured_media":559,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17,18],"tags":[21,20,22,23,24,25],"class_list":["post-529","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-internet","category-protection","tag-cdn","tag-cloudflare","tag-content-delivery-network","tag-ddos-protection","tag-dns","tag-nameservers"],"translation":{"provider":"WPGlobus","version":"3.0.2","language":"en","enabled_languages":["hr","en"],"languages":{"hr":{"title":true,"content":true,"excerpt":false},"en":{"title":true,"content":true,"excerpt":false}}},"_links":{"self":[{"href":"https:\/\/smartehacks.org\/en\/wp-json\/wp\/v2\/posts\/529","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/smartehacks.org\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/smartehacks.org\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/smartehacks.org\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/smartehacks.org\/en\/wp-json\/wp\/v2\/comments?post=529"}],"version-history":[{"count":16,"href":"https:\/\/smartehacks.org\/en\/wp-json\/wp\/v2\/posts\/529\/revisions"}],"predecessor-version":[{"id":565,"href":"https:\/\/smartehacks.org\/en\/wp-json\/wp\/v2\/posts\/529\/revisions\/565"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/smartehacks.org\/en\/wp-json\/wp\/v2\/media\/559"}],"wp:attachment":[{"href":"https:\/\/smartehacks.org\/en\/wp-json\/wp\/v2\/media?parent=529"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/smartehacks.org\/en\/wp-json\/wp\/v2\/categories?post=529"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/smartehacks.org\/en\/wp-json\/wp\/v2\/tags?post=529"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}