Learn about Centmin Mod LEMP Stack today
Register Now

Wordpress Cloudflare Guide: Using Cloudflare with Wordpress

Discussion in 'Blogs & CMS usage' started by eva2000, Sep 19, 2017.

  1. eva2000

    eva2000 Administrator Staff Member

    53,190
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,649
    Local Time:
    3:53 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Cloudflare has a new article on Using Cloudflare with WordPress. Worth reading :)
    Other Cloudflare + Wordpress Articles
    Notes for Centmin Mod Nginx Usage
    • For CSF Firewall whitelisting of Cloudflare IPs and setting up Nginx realip pass through you can setup tools/csfcf.sh script outlined at Beta Branch - csfcf.sh - automate Cloudflare Nginx & CSF Firewall setups
    • Cloudflare API token usage is per Cloudflare account. So be aware of this as Wordpress plugins save Cloudflare API token and if your Wordpress site does get compromised, so would the Cloudflare API token be compromised and the hackers would have access to all sites added within that Cloudflare account. You probably want to have a separate Cloudflare account for the site so have unique Cloudflare API tokens. Cloudflare Enterprise plans allow for separate API tokens, but Free, Pro and Business plans do not offer this feature Expanded availability of Multi-User access.


     
    Last edited: Sep 19, 2017
  2. rdan

    rdan Well-Known Member

    5,439
    1,397
    113
    May 25, 2014
    Ratings:
    +2,186
    Local Time:
    1:53 PM
    Mainline
    10.2
    I'm using this: Caching Static HTML with WordPress/WooCommerce
    For my biggest Managed WP Site, I can say it's 300-500% better than wp-super-cache and keycdn cache enabler.

    We are now using small Dedicated server from $470 per month Dedi down to $174 USD.
     
  3. eva2000

    eva2000 Administrator Staff Member

    53,190
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,649
    Local Time:
    3:53 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    I guess that is without Cloudflare Business Plan's bypass cookie page rules though ?
     
  4. rdan

    rdan Well-Known Member

    5,439
    1,397
    113
    May 25, 2014
    Ratings:
    +2,186
    Local Time:
    1:53 PM
    Mainline
    10.2
    With Cloudflare Business Plan Bypass Cookie Rule.
     
  5. eva2000

    eva2000 Administrator Staff Member

    53,190
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,649
    Local Time:
    3:53 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Oh i see.. that that would explain the boost in performance .. not bad if you can afford Cloudflare Business plan at US$200/month :)
     
  6. rdan

    rdan Well-Known Member

    5,439
    1,397
    113
    May 25, 2014
    Ratings:
    +2,186
    Local Time:
    1:53 PM
    Mainline
    10.2
    Still we save $100 with speed boost :).
     
  7. eva2000

    eva2000 Administrator Staff Member

    53,190
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,649
    Local Time:
    3:53 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Yeah - doing the maths, it makes sense. @BamaStangGuy I know did the same moving to Cloudflare Business Plan and reducing dedicated server hosting costs.
     
  8. rdan

    rdan Well-Known Member

    5,439
    1,397
    113
    May 25, 2014
    Ratings:
    +2,186
    Local Time:
    1:53 PM
    Mainline
    10.2
    With wordpress site, it's pretty easy but on XenForo site with 60-70% logged users we can't utilize much the page caching for guest.
     
  9. eva2000

    eva2000 Administrator Staff Member

    53,190
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,649
    Local Time:
    3:53 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    FYI, Cloudflare Enterprise plans also allow Custom Cache Key, Cache by Device or Cache on Cookies too Caching Anonymous Page Views
     
  10. smithonepa

    smithonepa New Member

    2
    0
    1
    May 3, 2020
    United Arab Emirates
    Ratings:
    +0
    Local Time:
    3:53 PM
    I am using Cloudflare for one of my website which is related to trivia questions and the site has 200k monthly visitors, Cloudflare free version still supports this site totally free of cost. its just amazing. love it