Now that ServInt has partnered with CloudFlare, it is easier than ever to install CloudFlare’s world class CDN on your own website. If you’re not familiar with CloudFlare, it is a service that protects and accelerates any website online. On average, websites on CloudFlare load twice as fast, use 60% less bandwidth, have 65% fewer requests and are way more secure. They have several useful features, such as DDoS mitigation and content delivery which can help keep your website online and being served to customers at top speeds across the globe.
In this guide, we will take you step by step how to set up CloudFlare’s basic free service package directly through your ServInt portal.
To do so, go to your “Services” page and find the CloudFlare icon there. Click on it.
Enter your email address and a password, then click on the check box to agree to CloudFlare’s terms of service. Once you do, your CloudFlare account will be created.
Next, enter the web address you wish to use and select the plan you wish to use. You can see the different features of each plan displayed below when you select that plan. Once you do, click on “Add Website”.
Once you do this, you’ll be asked to log into CloudFlare so it can check your DNS records. Click on the DNS icon to be directed to the CloudFlare login.
CloudFlare will have automatically scanned for your DNS records and displayed them as follows.
You should make certain that the records are accurate. If you are using ServInt’s name servers, you can do this by logging into WHM and comparing the two. You can find your DNS Records by typing “DNS” into the search bar and clicking on the “Edit DNS Zone” option. Otherwise, you will need to log into your domain name registrar to check theirs.
Select your domain name and it will bring up the DNS information for your server. If there is any information missing or incorrect on CloudFlare’s side, you can fix it now.
Once you have the DNS set up correctly, click continue and select the plan you wish to use. Click continue again and CloudFlare will provide you with new nameserver records. Copy the two nameservers they provide and enter them into the two fields shown above with “ns1.example.com” and “ns2.example.com” displayed and click save. You can now click “Recheck nameservers” to ensure you’re running through CloudFlare. If it returns a success, congratulations! You are now using CloudFlare’s nameservers, so if you add an addon, parked domain, or subdomain, you will need to update your DNS at CloudFlare instead of through WHM.
Next, you should whitelist CloudFlare’s IPs. You can find the list of them here. To do this, search for “Firewall” in WHM and click on the “ConfigServer Security & Firewall” option. On that page, find “Firewall Allow IPs” beneath ConfigServer Firewall. You can copy and paste CloudFlare’s IPs here.
Once you have saved them, click on the “Restart csf+lfd” button.
With this complete, CloudFlare will now be successfully running to protect your website from DDoS attacks and accelerate delivery of your site to visitors around the world.
In addition to these steps to get CloudFlare running, we recommend that you install CloudFlare’s mod_cloudflare in order to provide us with additional security and monitoring capabilities. You can install mod_cloudflare on your cPanel server by SSHing into your server and running the following commands:
wget https://raw.githubusercontent.com/cloudflare/mod_cloudflare/master/EasyApache/installer.sh bash installer.sh
If you’re not comfortable installing mod_cloudflare yourself, or you have any further issues with setting up CloudFlare, please feel free to contact our MST for assistance.