Short Introduction: CloudFlare is a Content Delivery Network(CDN) which builds up a wall between the website and the visitor. Due to miss config in CloudFlare settings, The CloudFlare wall can be bypassed. Today we’re gonna learn how to configure CloudFlare properly.
What is CloudFlare? What does CloudFlare do with my website after I activate my website on CloudFlare?
CloudFlare is a Content Delivery Network which builds up a wall between the website and the visitor. Only visitors are allowed to go through CloudFlare and even search engine crawlers are allowed but not attackers. CloudFlare covers the real IP address of the website with their IP address. Mostly CloudFlare IP(s) starts with 104.x.x.x.
How do CloudFlare works?
The chart above explains how the attacker gets the access to the website when the website is not under CloudFlare protection and at the right side, you can see how does CloudFlare protects the website from the attacker.
Setting up CloudFlare to avoid getting it bypassed.
CloudFlare needs to be configured properly so that no one can bypass it. You may think that after adding your website to CloudFlare, you are protected. But you are wrong. Ever heard of that quote? “With great powers, comes great responsibility“. Yes, You need to configure its DNS. Now you are thinking, how to do that? Let’s start.
Step one 1. Login to your CloudFlare account by going to the CloudFlare login portal.
Now you will see your subdomain which is protected. Go to your origin web hosting provider’s control panel and go to “DNS Settings” and check for all the sub names which are put up in the domain with their records. Example, cname.example.com. Record = CNAME. And now, as per the record, set it up with CloudFlare.
And you’re all done! Make sure all the Orange tick are done. Check the screenshot below.
When the website is not under CloudFlare’s protection, it will look like this :
And when it is under CloudFlare DNS setting then it will be in orange like the below one.
Now check for the upper screenshot. You will see how it looks when the website is under CloudFlare.
To enable the DNS, check click the grey cloud and when it turns to orange that means the website is under CloudFlare!
Note:- If you put SMTP record(MX alias) under CloudFlare, then you won’t be able to send email from your Web app or cPanel. You need to get another email server which is totally different from the host.
More articles are on its way!
(Hey! If you found any mistake then please suggest in the comment box below!. We’re pleased for your feedback and suggestions! Thank you!)