Whitelisting IP addresses in Cloudflare is an easy affair with this quick guide by our experts.
At Bobcares, we offer solutions for every query, big and small, as a part of our Server Management Services.
Let’s look at how our Support Team is ready to help customers with whitelisting IP addresses in Cloudflare.
All About Whitelisting IP addresses in Cloudflare
Cloudflare offers us the option of preventing malicious IP addresses from getting access to our website by granting access only to trusted IP addresses. In fact, this process is known as whitelisting. Furthermore, it offers an additional layer of protection to our website.
We can whitelist IP addresses with these steps:
- First, open the /home/username/public_html/.htaccess file via the cPanel File Manager or SSH command prompt. In case, the file does not exist, we have to create it.
- Next, copy the text below and paste it into the file from the previous step:
order deny,allow deny from all
- Then head to this link and copy-paste the list of IP addresses to the .htaccess file right after the deny from all line. Remember to ensure the IP addresses are on separate lines.
- Next, add the text seen below to the start of each line with an IP address:
allow from
- Furthermore, we can add additional IP addresses to the whitelist by using the allow from IP_address format.
- Finally, we will have a .htaccess file that looks similar to the one below:
order deny,allow deny from all allow from 103.21.152.0/12 [Additional Cloudflare IP addresses to allow] [Any other IP addresses you want to allow]
How to Whitelisting IP addresses from Cloudflare account
- First, log in to the Cloudflare account.
- Then, choose the Firewall icon and click the Tools tab.
- Next, we have to list out the IP addresses to be whitelisted below the IP Access Rules with these steps:
- First, enter the IP address
- Then, select Whitelist
- Next, select the website to which we want to apply these whitelisting rules to
- After that, click Add.
According to our Support Techs, we have to repeat the above steps for each IP address we wish to whitelist.
[Looking for a solution to another query? We are just a click away.]
Conclusion
To conclude, our skilled Support Engineers at Bobcares demonstrated how to whitelist IP addresses in Cloudflare.
PREVENT YOUR SERVER FROM CRASHING!
Never again lose customers to poor server speed! Let us help you.
Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.
0 Comments