How to Setting CloudFlare on WordPress


Cloudflare is a company that provides a content delivery network (CDN), DNS, DDoS protection, and security services. They are well-known in the web performance industry for their fast DNS lookup times and have a strong network of more than 100 different data centers around the world. Behind them there are several big company names like Google, Microsoft and Qualcomm. His clients include Nasdaq, Digital Ocean, Zendesk and Cisco.

[lwptoc width=”full” backgroundColor=”#81d742″ borderColor=”#81d742″]

If you are looking for easy ways to improve and speed up the security of your WordPress site, Cloudflare is a great solution. Most customers can even use their free rates, which offer unlimited CDN bandwidth. Follow the steps below to install Cloudflare on your WordPress page.

Install Cloudflare

This tutorial assumes that you already have a Cloudflare account. If not, you can visit the Cloudflare website and register for a free account.

Step 1

 Go to the Cloudflare Dashboard and click “+ Add Site.” Enter the domain of your WordPress page and click “Start Scan”. (You don’t need to add www or http / https, root domain).

It may take a minute or two and then click “Continue Settings”.

Step 2

Cloudflare offers two options. You can use CDNs and their protection (speed up and protect your site), or you can use their DNS. Most customers want the first, because here you benefit from all that Cloudflare has to offer. Check that the cloud turns orange to make sure your domain is activated. If you have more records, for example For example, e-mail (MX records) may not be, then cloudflare (gray). Click Continue after you have checked everything. You can change this note later at any time.

Step 3

On the next page you must choose the cloudflare package. We recommend starting with a free package that works for most users. Then click “Continue”.

Step 4

You must change the name servers in your domain to point to Cloudflare (use what they provide). Because Cloudflare is a complete proxy service, your domain will always go to Cloudflare. Cloudflare then refers your domain to register domain. There is no downtime when you change your name server. Then click “Continue”.

This shouldn’t take a long time, but it might take up to 24 hours for this change to be processed.

Step 5 (Optional)

Apa itu CloudFlare - halaman pengaturan plugin

There are extra steps for WordPress users that we recommend. This is only an optional step, but certain things with Cloudflare might not function properly if you don’t install the official Cloudflare plug-in.

You can download it from the WordPress repository or search for the WordPress Dashboard under the “Add New” plugins. This will have the following:

  • Correction for WordPress comments displayed by the same IP address
  • Automatic cache cleaning
  • Rewrite the header to prevent redirect loops when Universal SSL is enabled by Cloudflare
  • Possibility to change settings for Cloudflare accounts via the plugin itself (cache cleaning, security level, image optimization, etc.)
  • Look at analytics, such as total number of visitors, bandwidth saved, and threats blocked
  • Supports HTTP2 / Server Push

After installing the plugin, you must enter your Cloudflare email address and API key in Settings. Here you can get your API key. Copy the so-called “Global API Key”. Then click “Save API Credentials”.

On the Home tab , you can accept the default settings or refresh as you wish.

On the Settings tab , you can enable image enhancements when you use the pro plan, activate development mode, change the security level, and enable automatic HTTPS replacement.

The Analytics tab lets you see the number of requests, bandwidth, visitors and threats on your WordPress page.

Cloudflare Problems that Often Occur

One very common error that users receive when trying to install Cloudflare on their WordPress page is ” ERR_TOO_MANY_REDIRECTS ” in Chrome or “Page not redirected correctly” (Firefox).

This is because SSL is set up on your web server and then SSL is flexible with Cloudflare enabled. If you already have an SSL certificate for your hosting, you must set the SSL mode to full. If not, you can create a page rule to resolve this problem.

Additional cloudflare settings

Now that you know how to install Cloudflare, we encourage you to document the first steps and suggestions of the WordPress Guide to read.

Note: If mod_cloudflare is mentioned, what you need to know is Apache mod, you can also find out how much bandwidth your WordPress site uses compared to CDN.

Now you have learned how to set up CloudFlare CDN on WordPress and configure the WordPress CloudFlare plugin. This way, you can speed up website loading and secure it from DDoS attacks.

Hopefully these articles can be useful and help you with various installation problems or errors found. Thank you!

Leave a Comment