CloudFlare

 

Introducing the CloudFlare WordPress Plugin

Wordpress-logo-stacked-rgb

CloudFlare is a service that takes a great deal of pride in listening to the feedback of our users. CloudFlare recently had a customer make a very strong case that we build a WordPress plugin for CloudFlare, something we were considering asking a developer to build, but the customer convinced us to build our own. Within a few weeks, Ian built our first iteration of the CloudFlare WordPress plugin that is now live.

Some common FAQs about the CloudFlare plugin can be found below:

What does the CloudFlare plugin do?
- Restores the original visitor IP to your WordPress logs. Before the plugin the IP addresses would reflect CloudFlare's proxy IP addresses, which confused many blog owners.
- Helps optimize your server database.
- You can report spam in the plugin, which then feeds the report to CloudFlare to make our system smarter at stopping spam for sites on our network (coming by week ending November 13th).

How do I install the CloudFlare plugin?
A few clicks are all that is needed to upload the plugin to your blog.

Do I need to be a CloudFlare customer to install the WordPress Plugin?
While we would love for you to be a customer of CloudFlare so you get our speed and protection enhancements for your blog, our plugin was designed so that it could be used by any WordPress blog owner. You still receive the benefits of making sure your server database is optimized.

Does CloudFlare conflict with Akismet or W3 Total Cache?
No, we've designed our plugin to be complementary to all plugins, including Akismet and W3 Total Cache.

Can I use the CloudFlare with a WordPress.com blog?
Wordpress does not allow for modifications to free blogs, which means the plugin will only work for self-hosted blogs.

 Have a suggestion for improving the CloudFlare plugin? Do you want a plugin for a different blogging platform? Please contact CloudFlare with your suggestions.

Comments (47)

Nov 05, 2010
Nick Throlson said...
Awesome, Glad to see cloud flare with a WP app is there need to install this if my wordpress sites already setup with clould flare? using hostgator...

Thanks'

Nov 05, 2010
Michelle Zatlyn said...
It is definitely not required but we recommend that you still install it. Although you don't need the IP benefit since you are on HostGator, you can take advantage of the database optimizer and reporting spam on your WordPress site directly to CloudFlare. 



Nov 05, 2010
Rajesh Rana said...
coooooll thanx a lot.. CloudFlare Rockssssssssssssssssssssss :)
Nov 08, 2010
Vincent Mounier said...
This makes me wish I was using WP. I have been struggling with the IP issue for some time now. I can only hope that you (brilliant) CF people can also come up with a generic IP fix that won't be WP-dependent. Cheers!
Nov 08, 2010
Damon Billian said...
Hi Vincent,

We have solutions for many platforms, including Apache, here: http://www.cloudflare.com/wiki/Log_Files

Installing mod_cloudflare (if possible) is the best possible solution.

Nov 08, 2010
Joseph said...
Awesome! Since you guys are on a roll, can this be "converted" to a simple Joomla plugin?
Nov 08, 2010
Damon Billian said...
Hi Joseph,

May have somebody working on Joomla. We will try to keep you posted.

Nov 08, 2010
Doc Sheldon said...
Just installed the plugin, and it shows up in my CP menu, but when I click on it, I get a 404 error. Have you ever seen that happen before? It installed and activated with no problems.
Nov 08, 2010
Damon Billian said...
Hi Doc,

First time I've heard of a 404 error (generally not an error returned by CloudFlare). Can you send us an email to help [at] cloudflare [dot] com? Would be helpful to know:

CloudFlare account email address
Version of WordPress you're using

Nov 10, 2010
Ofer Wald said...
Hello there,

I am approaching my server directly (as its on my own subnet) however the plugin claims that cloudflare is not installed (while it is) so I guess the detection method is not entirely accurate, this is nothing big, but probably worth fixing.

Good luck with your service.

Nov 10, 2010
Damon Billian said...
Hi Ofer,

Going something like direct.yourdomain.com would trigger that message, unfortunately. It should not be present for domains that are CloudFlare enabled (yourdomain.com, www.yourdomain.com, etc.).

Nov 10, 2010
Ofer Wald said...
Hi,

Not only by going to direct, but also in the case where one has his server directly set in hosts file, or any other dns method (such as an internal zone file, such as in my case). again, this is no biggy, I fully understand why it happens etc, but the message may be misleading, and you should probably either change the wording (may not be ....) or change the detection method to query your servers somehow (non-dns)

Thanks for the response.

Nov 10, 2010
Damon Billian said...
Hi Ofer,

We'll figure out some solution.

Nov 22, 2010
Roezer said...
Do you even need the plugin I hate plugins the slow down my dashboard.
Nov 22, 2010
Damon Billian said...
Hi Roezer,

The plugin is 100% optional. I would recommend it, however, if you want to see original visitor IP without having to make modifications to you server. Since we act as a proxy for your site, it means our IPs would reflect without making one of the changes.

Dec 10, 2010
exposedplanet said...
I also got the same note after activating:
"You are not currently using CloudFlare. Sign up for CloudFlare here. Once you are on CloudFlare, this plugin will automatically work.

The most common reason for the message above is that www is not added to your DNS zone file. Please add www under your DNS Settings by making a CNAME record of www as an alias to your domain.com.
Note: This error message will also be displayed if you are on direct.yourdomain.com, or a similar subdomain. "

This is on my main domain.com on a WP multisite, (without www).
Cheers,Harry

Dec 10, 2010
Damon Billian said...
CNAME record of www as an alias to your domain.com
Dec 10, 2010
exposedplanet said...

That exact cname already exists (as is the Aname for the * wildcard for WP subdomains), so the problem is elsewhere..<o:p></o:p>

From: Posterous [mailto:comment-dFCmDgakJBpiaol@posterous.com]
Sent: vrijdag 10 december 2010 20:59
To: info@exposedplanet.com
Subject: [blog.cloudflare.com] Comment on "Introducing the CloudFlare WordPress Plugin"<o:p></o:p>

Dec 10, 2010
Damon Billian said...
Hard to troubleshoot on the blog directly. A screen shot to help[at]cloudflare[dot]com would be great.
Dec 11, 2010
exposedplanet said...

The error disappeared after 24 hours and the stopped botnets are appearing so that is good.<o:p></o:p>

The bad thing is that many times I get the CloudFlare black screen of death saying my site is offline, which it is not.<o:p></o:p>

(Site is http://exposedplanet.com) <o:p></o:p>

I have not blocked the IP’s (else it would not work anyway).<o:p></o:p>

One other showstopper is that with using WordPress The Quick Edit function (of posts) does not work anymore, it never saves or sometimes it does, but never end normally (Quick editscreen disappearing). Also the regular edit times out 50% of the times.<o:p></o:p>

I have another WP installation on the exact same server/IP but with the host’s nameservers and there the (Quick) edits work as expected.<o:p></o:p>

Any info on this before I switch CF off again? <o:p></o:p>

Many thanks, Harry<o:p></o:p>

From: Posterous [mailto:comment-dFCmDgakJBpiaol@posterous.com]
Sent: vrijdag 10 december 2010 21:22
To: info@exposedplanet.com
Subject: [blog.cloudflare.com] Comment on "Introducing the CloudFlare WordPress Plugin"<o:p></o:p>

Dec 11, 2010
Damon Billian said...
The bad thing is that many times I get the CloudFlare black screen of death saying my site is offline, which it is not.
Feb 06, 2011
Greater68 said...
How do I configure MX Record for Google Apps Mail ?

Other problem when I try to edit a theme or plugin in wp-admin of Wordpress, after confirm update, it's redirect me to homepage and nothing happens

Feb 06, 2011
Damon Billian said...
Hi,

Directions for Google MX records here: https://cloudflare.tenderapp.com/kb/adding-sites-cloudflare/how-do-i-add-a-cn...

Can't think of any reason for the other issues & would need more details. Are you using a beta version of a browser?

Feb 06, 2011
Greater68 said...
I'm using Firefox 4 beta 8 and PaleMoon 3.1.6, maybe that's the reason. I'll try Chrome to test this error.

Thank for your support !

Feb 11, 2011
jazzvox said...
Is there any need to do add code as described here: wiki/CloudFlare_DNS_and_the_Wordpress_Dashboard ??
Feb 11, 2011
Damon Billian said...
No, not if you're using the plugin. Only for people that don't want to install the plugin.
Feb 25, 2011
Chris said...
Could you please test this plugin on WordPress 3.1 please.
Mar 03, 2011
tony james said...
Do i need to use any caching plugin if I am using cloudflare, also is it safe ti deactivate aksimet?
Mar 03, 2011
Damon Billian said...
Hi,

CloudFlare built our plugin to be complementary to services like W3TC (W3 Total Cache) and Akismet. I would recommend utilizing these plugins as well & not removing existing plugins.

Jul 15, 2011
Andi said...
Hi All,
I'm new here, and a little bit confused about the concept. I use CloudFlare as my authoritative DNS, and I also use statcounter on my wordpress blog. I notice that CloudFlare is already setup properly because every time I try posting comment from foreign IP, the notification email said that comment is from CloudFlare ip subnet.
But when I check in my statcounter dashboard, I can still see the origin IP of the visitor, not the CloudFlare subnet. Why is that happen? Is that right? I mean, if we post comment to wordpress then it shows the CloudFlare IP's, but why when we just browse the website then it shows the visitor's origin IP?
Thank you very much, any helps would be greatly appreciated!
Aug 10, 2011
scidox said...
it is necessary to activate this wordpress plugin if i have active the cloudflare section in the w3 total cache?
Aug 10, 2011
Damon Billian said...
Hi Scidox,

No need to have both plugins, unless you want the spam reporting capabilities in the CloudFlare WordPress plugin.

Sep 26, 2011
Hannah said...
Hi I just hooked up with Cloudflare last night. I discovered it when reactivating my finicky W3C plugin and reviewing all the settings. The Cloudflare setup was new, so I went for it. I finished doing all the minifying early this morning and things are running much nicer, but I wonder if I could do better by removing plugins that seem to be doing the same work as CloudFlare. I saw above that W3C and Akismet are recommended keepers, but I also have an email obfuscator, Theme Authenticity Checker and Threat Scan. I really do have too many plugins going, but I need them for my blog's functionality, so if any of the plugins mentioned above aren't needed now that I have CloudFlare I'd really like to disable or uninstall them. Any thoughts or additional recommendations?
Sep 28, 2011
I was wondering do I have to setup the site in Cloudflare before installing this plugin?
Sep 28, 2011
Damon Billian said...
Yes, as you would only get your API key from your account.
Jan 04, 2012
Don Gordon said...
one big issue I have is that I have a direct.thegamemusicguy.com that is supposed to bypass could flare but wordpress automatically redirects me to the sites URl from the config. So testing changes is all but impossible and I have had issues installing plugins or wordpress updates, because the page is being cached (I assume) and it does not continue the install. Would it be possible to have the plugin bypass this Wordpress function? outside that, thanks for the great plugin and great service.
Jan 04, 2012
John Roberts said...
@Don, the direct subdomain would need to be matched by your server configuration for a VirtualHost (or equivalent). Having the plugin override this would be problematic for those that do not use the direct subdomain, or name it something else.

One related tip: you might want to use our new beta feature, Page Rules, to disable CloudFlare on the /wp-admin/ directory. https://www.cloudflare.com/preview-page-rules will take you there if logged in to your CloudFlare account.

Jan 04, 2012
Don Gordon said...
@John Thanks for the fast reply, I do have the direct. subdomain added into CloudFlare and a valid VirtualHost setup on the server. Should the direct. be a CNAME? Currently it is setup as a A record. as for the page rules system, sounds like it will be perfect for fixing the admin page issues. but I would still like to be able to test the main site by using the direct subdomain. Thanks again
Jan 04, 2012
John Roberts said...
@Don - CNAME or A record doesn't matter. My guess = check the .htaccess file. Often there is a WordPress setting which alters the .htaccess file to either force the www or remove the www. Looks like your site forces the www.

BTW, direct.thegamemusicguy.com/ works fine for me, so maybe you've solved this already?

Jan 04, 2012
Don Gordon said...
@John It looks like I might have worded my question wrong, as you can see on the direct. site, although the page is loaded form direct. all the content and links reference the wordpress config for the sites URL, IE www. Is there anyway the plugin could bypass that and just use the host name or just use relative linking? maybe have it be an optional option in the plugin settings page?
Jan 04, 2012
John Roberts said...
@Don - that's beyond the scope of the CloudFlare plugin. Whether your site uses relative or absolute linking is within your control in WordPress, including themes, etc.
Jan 04, 2012
Don Gordon said...
@John Thanks for clearing that up, guess ill look into hooking/modifying the core. But the page rules will come in handy for fixing the admin page issues. Thanks again
Jan 29, 2012
luis said...
Are there any issues with WP Cloudflare plugin and twitter?
My twitter plugin stopped working and none of several ones available seems to work.
Jan 29, 2012
luis said...
Are there any issues with WP Cloudflare plugin and twitter?
My twitter plugin stopped working and none of several ones available seems to work.
Jan 30, 2012
Damon Billian said...
Hi,

No, not directly. If you're using a widget based on JavaScript,
however, beta features like Rocket Loader or Auto Minify may have
impacted it. Does turning them off fix the issue?
Feb 23, 2012
soupdogdownload said...
Is it broken or something? I'm only seeing the cloudflare IP range. I'm using piwik as stats app for my wordpress blog.. its like 95% cloudflare IP and sometimes I see normal ones.
Feb 23, 2012
Matthew Prince said...
If piwik is pulling data from your raw server logs, you will need to install mod_cloudflare in order to see the correct IPs. The way TCP works, by default the CloudFlare servers show up in your IP address logs. You can correct this at the application layer (i.e., WordPress) with a plugin that sits in front of the app. To fix this for your raw server logs, you need to have software sitting in front of the web server. This is what mod_cloudflare does. You can find instructions on how to install it (or several other solutions) on this page:

http://www.cloudflare.com/wiki/Log_Files

Leave a comment...