Sunny (Connecting CloudFlare and WordPress)

Description

Sunny automatically clears CloudFlare cache. And, protect your WordPress site at DNS level.

Features

  • Integrate with iThemes Security, Contact Form 7 and WordPress Zero Spam
  • Blacklist IP if attempt to login with bad username
  • Automatically clears corresponding CloudFlare caches whenever a post/page/media attachment is updated, commented or trashed.
  • Purge CloudFlare cache from WordPress admin dashboard
  • Test your CloudFlare API key

Guide

How does Sunny different from CloudFlare’s offical plugin?

At the time of writting, CloudFlare’s offical plugin doesn’t purge anything for WordPress. It provides the real IP of your visitors and notify CloudFlare when you marking an IP as SPAM. However, it does not include a way to clear the cache or make adjustments to how it works. Here comes Sunny! Sunny focus on cache purging.

Things you need to know

  • You need a CloudFlare account.
  • This plugin was not built by CloudFlare.

How others talking about Sunny?

If you have written an article about Sunny, do let me know.

Who make this plugin?

Tang Rufus, a freelance developer for hire.
I make WP Human also.

Requirement

  • PHP 5.3 or later

Screenshots

  • Account Settings
  • General Settings
  • Email Settings
  • Tools
  • Integration

Installation

  1. Download the plugin.
  2. Go to the WordPress Plugin menu and activate it.
  3. Go to “Settings” –> “Sunny”
  4. Fill in your CloudFlare account info
  5. Test it with Connection Tester (via Settings Page)
  6. That’s it!

Check out this step-by-step guide for detail instructions.

FAQ

Check out this step-by-step tutorial.

Is this plugin written by CloudFlare, Inc.?

No.
Sunny is written by Tang Rufus

Can I install both Sunny and CloudFlare’s offical plugin at the same time?

Yes.

When should I install Sunny and CloudFlare’s offical plugin at the same time?

Install Sunny if you want to purge CloudFlare’s cache automatically.
Install the offical plugin if you can’t see the real IP from visitors.

When does Sunny purge my cache?

Every time a published post is updated or commented.
Or, every time post status change from/to published

What pages does it purge when a post is updated?

The post itself, homepage and its catories, tags and taxonomies archive.
Use the URL purger on Tools tab to check what will be cleared for a particular URL.
You can disable this behavior via the General tab.

What if Sunny blacklisted my IP?
  1. Login CloudFlare.
  2. Release you IP on the threat control dashborad.
Parse error: syntax error, unexpected T_FUNCTION in …

If you come across this error, make sure that you have PHP 5.3 or later installed.

Dose it support mulitsite?

Confirmed that it doesn’t work network wide. While this version of Sunny does not intended to support mulitsite, you might want to try activating Sunny on a per site basis (WPMU DEV has a step-by-step tutorial). Please report your findings.

Moreover, I am planning to write a mulitsite version. Drop me a note if you want early asscess.

Reviews

works great but problem uninstalling

since I first installed this plugin I noticed that it can’t be uninstalled via wp-admin, only through FTP.

in_array() expects parameter 2 to be array, null given in
public_html/wp-content/plugins/sunny/uninstall.php on line 46

question

I’m using a free hosting service that has CloudFlare included in its cPanel. Can I use this plugin once I activate CloudFlare fro the cPanel?

Read all 11 reviews

Contributors & Developers

“Sunny (Connecting CloudFlare and WordPress)” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.5.4

  • Fix: Postboxes not expanding or collapsing on click outside of Sunny
  • Fix: Broken links to WP Human website

1.5.3

  • Fix: Showing empty admin bar for non-logged in users

1.5.2

  • Tweak: Support WordPress installations on their own directories
  • Fix Firefox force reloading Tools tab

1.5.1

  • Fix: Activator incorrect message
  • Fix: ITSEC_Lockout constructor missing argument
  • Security: Add black index files
  • Developer: Rename intergrated_plugin_name –> intergrated_plugin_slug
  • Developer: Remove views files in public folder
  • Developer: Refactor Sunny_Settings & Sunny_Sanitization_Helper with dependency inversion principle
  • Developer: Rename folder plublic to modules\
  • Developer: Modularize Sunny_iThemes_Security and Sunny_Zero_Spam
  • Developer: Sunny_Updater constructor takes version number

1.5.0

  • Fix: update notice not showing
  • Developer: Better file headers
  • Developer: Introduce abstract spam module
  • Deprecated: plugin_screen_hook_suffix

1.4.16

  • New Translation: zh_HK

1.4.15

  • New Feature: Integrate with Contact Form 7
  • Fix: Zero Spam module early quit before getting IPs
  • Developer: WP Plugin Boilerplate – Change name -> plugin_name for consistency. See this commit
  • Developer: WP Plugin Boilerplate – Fixing require() -> require_once(). See this commit
  • Deverloper: WP Plugin Boilerplate – Create functions for activation and deactivation hooks. See this commit

1.4.14

1.4.13

  • Tweak: Use zero_spam_ip_blocked instead of zero_spam_found_spam_registration and zero_spam_found_spam_comment
  • Tweak: Sanitize in Easy Digital Downloads way

1.4.12

  • New Feature: Integrate with iThemes Security
  • Performance boost: Early quit if unnecessary
  • Tweak: Use jQuery UI style on setting pages
  • Fix: Unable to send WordPress Zero Spam blacklist notification emails

1.4.11

1.4.10

  • Update screenshots

1.4.9

  • Add: WP Human tutorial
  • Add: URL input fields
  • Tweak: Use PHP filter_var to validate IPs and check localhost IPs
  • Tweak: Line breaks between input fields and labels
  • Fix: Typo

1.4.8

  • Tweak: Use WP Human newletter signup form
  • Deprecated: zone_ips, Pull recent IPs visiting site

1.4.7

  • Fix: 127.0.0.1 is localhost

1.4.6

  • Fix: Separating admin notices and email notification
  • Fix: Log email notification into php error log only if WP_DEBUG is true

1.4.5

  • Performance: Not loading plugin css
  • Security: Checking page=sunny as referral
  • Fix: check wp_http_referer bugged with question marks
  • Fix: Empty customized bad usernames issue

1.4.4

  • New: Customize bad usernames
  • New: Non-ajax support to Tools Ttb
  • New: Prevent network wide activation

1.4.3

  • Fix: Deactivation hook typo

1.4.2

  • New: Option to disable email notifications
  • Fix: Set default email frequency to immediately
  • Security Fix

1.4.1

  • New: zh_TW Translation

1.4.0

  • Code Rewrite & File Organization
  • New: Defer noticifcation emails
  • New: Ban IP if Login As Administrator
  • New :Purge when status change from/to published
  • Fix: IP being banned twice
  • Fix: Duplicate blacklist notification email
  • Fix: Admin bar always been hided

1.3.0

  • New:Ban IP if Login As Admin

1.2.6

  • Bug Fix

1.2.5

  • New: Mailing List Signup Form

1.2.4

  • Improve Performance

1.2.3

  • New: Support special type top level domains

1.2.2

  • New: Ready for localization
  • Fix: Class ‘Parent’ not found fatal error

1.2.1

  • Bug Fix

1.2.0

  • New: Admin bar hider
  • Code Rewrite
  • UI Improvement
  • Performance Improvement
  • Remove: GitHub Updater

1.1.1

  • Fix: Wrong version number

1.1.0

  • New: URL purger
  • New: Purge related URLs during post update
  • Better Description and Documents

1.0.4

  • Tidy up source code according to WordPress coding standard

1.0.3

  • Tidy ReadMe

1.0.2

  • New: PayPal Donation Link

1.0.1

  • Submit to WordPress Plugin Directory

1.0.0

Initial Release

  • New: Readme.txt
  • New: Screenshots

0.0.2

  • New: GitHub Updater

0.0.1

  • Initial Alpha Test