Site in read-only mode

This site is now read-only following the release of MyBB 1.8 and the new mods site.

If you are looking for MyBB 1.8 mods please click here to visit the new mods site.

You can continue to download submissions for MyBB 1.6 and earlier here, however new submissions will only be accepted via the new mods site.

Antoligy MyBB Cloudflare Management Plugin

Lightweight, Yet Powerful Cloudflare Management & Forum Integration

Version: 1.2
Author: Antoligy
Submitted: 22nd December 2011
Last Updated: 28th December 2011

[img]http://www.cloudflare.com/images/layout/cloudflare-logo.png[/img]

Preface/About
A few months ago, I started using Cloudflare for the forum I run. The improvements to site speed were pretty impressive, but I noticed that since Cloudflare was essentially a reverse proxy, user IPs were showing up as the reverse proxy IPs which rendered protection and bans useless.
That's when I started looking for how to fix this issue, and I arrived at a rather simple answer: develop a plugin to set the forwarded header as the user IP. (I've since personally switched to a server-side configuration block, but have kept the core functionality intact).
A short while later, another problem arose, namely that my fellow Administrators were unable to test changes to code (CSS/JS) unless Cloudflare development mode was on, and were also unable to see information about the bandwidth used etc... so I implemented quite a bit more.
The plugin stands today at ~400 lines of code, and since we are switching over to another forum (IP.Board) I have decided to release the plugin (and thereby the source-code, under a modified ISC License) to anyone who may be interested.

I am not dropping development of this project, and if features are requested I will strive to implement them. I believe I am long overdue to implement some of the newer settings (IPv6 and the like), and so those will come at some point in the near future. Support will also be provided.
(I know that there is a similar project currently available, arguably better. This was created before then, and has been in use on my forum since earlier this year).

Donations are welcome, and will provide a better incentive to build bigger/better/more plugins.

Features
  • Allows remote control of Cloudflare Site settings (Cache, Traffic).
  • Displays statistics from Cloudflare (Time, Cache, Traffic, Bandwidth).
  • Automatically fetches Cloudflare Zone ID.
  • Fixes user-IPs.


Screenshots
Preview Image 4684

Installation & Configuration
The entire project is available either from here, or in my GitHub repo, bleeding-edge style: https://github.com/antoligy/MyBB-Plugins...Management

Installation of the plugin is relatively simple (although REQUIRES a Cloudflare account, and for your domain to be handled by it):

  1. Upload the Cloudflare.php to your inc/plugins/ directory.
  2. Install & Activate the plugin under the Administrator Control Panel.
  3. Configure API Key, Email Address and Domain Name in Plugin Settings.
  4. Start using under Tools->Cloudflare Management.