Setting Cloudflare on WordPress Website

Steps to Setting Cloudflare on WordPress

Follow these steps in order to set up Cloudflare in WordPress.


1. Create a Cloudflare Account

If you don't have an account with Cloudflare, please Sign Up first here: dash.cloudflare.com/sign-up.


2. Register Domain to Cloudflare



Once you have an account, you can login and register your domain with Cloudflare. Read more: How to Register a Domain on Cloudflare.



3. Update Nameservers in the client area



You need to update Nameserver 1 and Nameserver 2 in the Niagahoster Member Area to match the Cloudflare Nameserver. Read: How to Update Name Servers.



Please note that Cloudflare Nameservers can be different for each account. Please adjust according to your account.



4. Know the Cloudflare Global API Key



You need to take note of the Global API Key before you can configure the Cloudflare plugin in WordPress.


    1. On the Cloudflare Overview page, scroll down to the API section. Then, click Get your API Token.



    2. You will be redirected to the API Tokens page. Next, scroll to the API Keys section. Select the Global API Key option, then click the View button.



    3. Enter your Cloudflare account password on the pop-up screen that appears. Also, complete the Captcha test here. To continue the process, click the View button.



    4. Congratulations! The Global API Key will be displayed. You can make a note of it to use in the next step.


5. Install and Setup the Cloudflare Plugin



After that, you can install the Cloudflare plugin on your WordPress website.


    1. Log in to your WordPress dashboard.



    2. Select the Plugins menu and click the Add New submenu to add a new plugin.



    3. You will be redirected to the Add Plugins page. Use the search feature to find Cloudflare, then click the Install Now button to install the plugin.



    4. Once the plugin is successfully installed, click the Activate button to activate the Cloudflare plugin.



    5. You will be redirected to the Plugins page. Here you can see a list of installed plugins. Select the Cloudflare plugin, then click Settings to configure.



    6. The Cloudflare page will be displayed. Sign in using your Cloudflare account by clicking here.



    7. Next, enter the Email and Global API Key of your Cloudflare account. To continue the process, click the Save API Credentials button.



    8. You have successfully entered the Cloudflare settings page in WordPress. To apply Cloudflare's recommended settings, click the Apply button.



    9. Select the Settings menu in the menu bar at the top. Then, enable the Always Online toggle. This is done so that the website can still be accessed even when it is down with the help of Cloudflare's Cache.



   10. Scroll to the Auto Purge Content On Update setting, then also activate the On toggle. That way, the Cache will be automatically updated when you make changes to the content on the website.



   11. Finally, toggle On the Automatic HTTPS Rewrites setting to ensure that all URLs on your WordPress website are HTTPS. Congratulations, you've successfully set up Cloudflare for your WordPress website.



Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.