PHPackages                             typisttech/wp-cloudflare-guard - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. typisttech/wp-cloudflare-guard

AbandonedArchivedLibrary[Security](/categories/security)

typisttech/wp-cloudflare-guard
==============================

Connecting WordPress with Cloudflare firewall, protect your WordPress site at DNS level. Automatically create firewall rules to block dangerous IPs

0.2.0(9y ago)14132[8 issues](https://github.com/typisttech/wp-cloudflare-guard/issues)[6 PRs](https://github.com/typisttech/wp-cloudflare-guard/pulls)GPL-2.0+PHPPHP ^7.0

Since Mar 5Pushed 2y ago2 watchersCompare

[ Source](https://github.com/typisttech/wp-cloudflare-guard)[ Packagist](https://packagist.org/packages/typisttech/wp-cloudflare-guard)[ Docs](https://github.com/TypistTech/wp-cloudflare-guard)[ RSS](/packages/typisttech-wp-cloudflare-guard/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (12)Versions (12)Used By (0)

WP Cloudflare Guard
===================

[](#wp-cloudflare-guard)

[![WordPress plugin](https://camo.githubusercontent.com/dbaf9bc5a348fe06e778f6096f92e3df2d577ecd4a023740aa2db8ae9a8ec4cf/68747470733a2f2f696d672e736869656c64732e696f2f776f726470726573732f706c7567696e2f762f77702d636c6f7564666c6172652d67756172642e737667)](https://wordpress.org/plugins/wp-cloudflare-guard/)[![WordPress](https://camo.githubusercontent.com/76ecdde6718d51a35e4f27564a95128a68e64b2b77dca713f9c559c3ffcc170f/68747470733a2f2f696d672e736869656c64732e696f2f776f726470726573732f706c7567696e2f64742f77702d636c6f7564666c6172652d67756172642e737667)](https://wordpress.org/plugins/wp-cloudflare-guard/)[![WordPress rating](https://camo.githubusercontent.com/60ba22b11f01983e6325ac5698cbb0ae9a8d944c4b9551c8b4bf0b5c8cb0773c/68747470733a2f2f696d672e736869656c64732e696f2f776f726470726573732f706c7567696e2f722f77702d636c6f7564666c6172652d67756172642e737667)](https://wordpress.org/plugins/wp-cloudflare-guard/)[![WordPress](https://camo.githubusercontent.com/03a63d7b4ad3e30a345007c47345ed856787f494671ac893468821b3814dd11b/68747470733a2f2f696d672e736869656c64732e696f2f776f726470726573732f762f77702d636c6f7564666c6172652d67756172642e737667)](https://wordpress.org/plugins/wp-cloudflare-guard/)[![Build Status](https://camo.githubusercontent.com/b04253ae06aa4bc33997771ba61a958c649821ad6ff155679e0e45bed435ecc3/68747470733a2f2f7472617669732d63692e6f72672f547970697374546563682f77702d636c6f7564666c6172652d67756172642e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/TypistTech/wp-cloudflare-guard)[![codecov](https://camo.githubusercontent.com/e9217c3bc844d675495b5085c04afb8a7ffdafecb69579ebc67774d48478d46c/68747470733a2f2f636f6465636f762e696f2f67682f547970697374546563682f77702d636c6f7564666c6172652d67756172642f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/TypistTech/wp-cloudflare-guard)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/a317d75b9d2751aab420647d4cbd35ff448bec7132b77d5ede533314651c1f13/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f547970697374546563682f77702d636c6f7564666c6172652d67756172642f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/TypistTech/wp-cloudflare-guard/?branch=master)[![PHP Versions Tested](https://camo.githubusercontent.com/b5f07fa5966ee1fd7c2f8f618faaccdbbee78a3a92e388adc27836e0d8409d6b/687474703a2f2f7068702d6579652e636f6d2f62616467652f747970697374746563682f77702d636c6f7564666c6172652d67756172642f7465737465642e737667)](https://travis-ci.org/TypistTech/wp-cloudflare-guard)[![StyleCI](https://camo.githubusercontent.com/c0234f22e65210ac277bcc876d13b5310c4bc26b6ee838b0efb9c06800514af6/68747470733a2f2f7374796c6563692e696f2f7265706f732f38333835353033372f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/83855037)[![Dependency Status](https://camo.githubusercontent.com/a097daace40f1922d6898bcc53941940e876be66672d3d313d5bfa73361a2c22/68747470733a2f2f67656d6e617369756d2e636f6d2f6261646765732f6769746875622e636f6d2f547970697374546563682f77702d636c6f7564666c6172652d67756172642e737667)](https://gemnasium.com/github.com/TypistTech/wp-cloudflare-guard)[![License](https://camo.githubusercontent.com/95ebc89acaa8934a515baab4601c82035f4fa262c6f83c0b64e006fec2e549c8/68747470733a2f2f706f7365722e707567782e6f72672f747970697374746563682f77702d636c6f7564666c6172652d67756172642f6c6963656e7365)](https://packagist.org/packages/typisttech/wp-cloudflare-guard)[![Donate via PayPal](https://camo.githubusercontent.com/b57c445af971e3e99c2d0ccdbf4fa7faa4358ba27fecc8f68459b30289f82eda/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446f6e6174652d50617950616c2d626c75652e737667)](https://www.typist.tech/donate/wp-cloudflare-guard/)[![Hire Typist Tech](https://camo.githubusercontent.com/e392a964bbdc0c32d95825bbc8253027387bcb9b021176d807d22ac75d86f308/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f486972652d547970697374253230546563682d6666363962342e737667)](https://www.typist.tech/contact/)

Connecting WordPress with Cloudflare firewall, protect your WordPress site at DNS level. Automatically create firewall rules to block dangerous IPs

- [Installation Instructions](#installation-instructions)
    - [Via Manually Upload](#via-manually-upload)
    - [Via WP CLI](#via-wp-cli)
- [Developing](#developing)
- [Build from Source](#build-from-source)
- [Branches](#branches)
    - [Master](#master)
    - [Nightly](#nightly)
- [Support!](#support)
    - [Donate via PayPal \*](#donate-via-paypal-)
    - [Why don't you hire me?](#why-dont-you-hire-me)
    - [Want to help in other way? Want to be a sponsor?](#want-to-help-in-other-way-want-to-be-a-sponsor)
- [Running the Tests](#running-the-tests)
- [Feedback](#feedback)
- [Change log](#change-log)
- [Security](#security)
- [Contributing](#contributing)
- [Credits](#credits)
- [License](#license)

This repository is a development version of [WP Cloudflare Guard](https://wordpress.org/plugins/wp-cloudflare-guard/) intended to facilitate communication with developers. It is not stable and not intended for installation on production sites.

Bug reports and pull requests are welcome.

If you are not a developer or you'd like to receive the stable release version and automatic updates, install it via [WordPress.org](https://wordpress.org/plugins/wp-cloudflare-guard/) instead.

Installation Instructions
-------------------------

[](#installation-instructions)

If you are not a developer or you'd like to receive the stable release version and automatic updates, install it via [WordPress.org](https://wordpress.org/plugins/wp-cloudflare-guard/) instead.

The `master` branch is not installable. Use the `nightly` branch instead. See [branches](#branches).

### Via Manually Upload

[](#via-manually-upload)

1. Download the built archive from [nightly branch](https://github.com/TypistTech/wp-cloudflare-guard/archive/nightly.zip)
2. Unzip it
3. Upload it to `wp-content/plugins/`
4. Go to the WordPress plugin menu and activate it

### Via WP CLI

[](#via-wp-cli)

1. `$ wp plugin install https://github.com/TypistTech/wp-cloudflare-guard/archive/nightly.zip --activate`

Developing
----------

[](#developing)

Before start hacking, you need `composer ` and `yarn` installed. See:

- [getcomposer.org](https://getcomposer.org/doc/00-intro.md)
- [yarnpkg.com](https://yarnpkg.com/en/docs/install)

To setup a developer workable version you should run these commands:

```
$ composer create-project --keep-vcs --no-install typisttech/wp-cloudflare-guard:dev-master
$ cd wp-cloudflare-guard
$ composer install
```

Build from Source
-----------------

[](#build-from-source)

These commands build the plugin into `release/wp-cloudflare-guard.zip`.

1. `$ composer build`
2. `release/wp-cloudflare-guard.zip`

Branches
--------

[](#branches)

### Master

[](#master)

The `master` branch is the main branch where the source code of `HEAD` always reflects a state with the latest delivered development changes for the next release. This is where the `nightly` branch is built from. Since we built this plugin with `composer` and `grunt`, this branch is not installable.

### Nightly

[](#nightly)

The `nightly` branch is built by TravisCI whenever the `master` branch is updated. Anything in the `nightly` branch is installable. See [installation instructions](#installation-instructions).

Support!
--------

[](#support)

### Donate via PayPal [![Donate via PayPal](https://camo.githubusercontent.com/b57c445af971e3e99c2d0ccdbf4fa7faa4358ba27fecc8f68459b30289f82eda/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446f6e6174652d50617950616c2d626c75652e737667)](https://www.typist.tech/donate/wp-cloudflare-guard/)

[](#donate-via-paypal-)

Love WP Cloudflare Guard? Help me maintain WP Cloudflare Guard, a [donation here](https://www.typist.tech/donate/wp-cloudflare-guard/) can help with it.

### Why don't you hire me?

[](#why-dont-you-hire-me)

Ready to take freelance WordPress jobs. Contact me via the contact form [here](https://www.typist.tech/contact/) or, via email

### Want to help in other way? Want to be a sponsor?

[](#want-to-help-in-other-way-want-to-be-a-sponsor)

Contact: [Tang Rufus](mailto:tangrufus@gmail.com)

Running the Tests
-----------------

[](#running-the-tests)

[WP Cloudflare Guard](https://github.com/TypistTech/wp-cloudflare-guard) run tests on [Codeception](http://codeception.com/) and relies [wp-browser](https://github.com/lucatume/wp-browser) to provide WordPress integration. Before testing, you have to install WordPress locally and add a [codeception.yml](http://codeception.com/docs/reference/Configuration) file.

See [codeception.example.yml](codeception.example.yml) for a [Varying Vagrant Vagrants](https://varyingvagrantvagrants.org/) configuration example.

Actually run the tests:

```
$ composer test
```

We also test all PHP files against [PSR-2: Coding Style Guide](http://www.php-fig.org/psr/psr-2/) and part of the [WordPress coding standard](https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards).

Check the code style with `$ composer check-style` and fix it with `$ composer fix-style`.

Feedback
--------

[](#feedback)

**Please provide feedback!** We want to make this library useful in as many projects as possible. Please submit an [issue](https://github.com/TypistTech/wp-cloudflare-guard/issues/new) and point out what you do and don't like, or fork the project and make suggestions. **No issue is too small.**

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) and [CODE\_OF\_CONDUCT](./CODE_OF_CONDUCT.md) for details.

Credits
-------

[](#credits)

[WP Cloudflare Guard](https://github.com/TypistTech/wp-cloudflare-guard) is a [Typist Tech](https://www.typist.tech) project and maintained by [Tang Rufus](https://twitter.com/Tangrufus), freelance developer for [hire](https://www.typist.tech/contact/).

Full list of contributors can be found [here](https://github.com/TypistTech/wp-cloudflare-guard/graphs/contributors).

License
-------

[](#license)

[WP Cloudflare Guard](https://github.com/TypistTech/wp-cloudflare-guard) is licensed under the GPLv2 (or later) from the [Free Software Foundation](http://www.fsf.org/). Please see [License File](LICENSE) for more information.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance9

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~12 days

Total

5

Last Release

3305d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c1b05c8ed4ea3f68173555264d0226d5faeb7f315ed9df91890c351ef576ce72?d=identicon)[TangRufus](/maintainers/TangRufus)

---

Top Contributors

[![tangrufus](https://avatars.githubusercontent.com/u/2259834?v=4)](https://github.com/tangrufus "tangrufus (147 commits)")

---

Tags

cloudflarefirewallsecuritywordpresswordpress-pluginwordpresssecuritycloudflarewpfirewall

### Embed Badge

![Health badge](/badges/typisttech-wp-cloudflare-guard/health.svg)

```
[![Health](https://phpackages.com/badges/typisttech-wp-cloudflare-guard/health.svg)](https://phpackages.com/packages/typisttech-wp-cloudflare-guard)
```

###  Alternatives

[brain/nonces

OOP package for WordPress to deal with nonces.

26227.1k1](/packages/brain-nonces)[itinerisltd/disallow-pwned-passwords

Disallow WordPress and WooCommerce users using pwned passwords.

281.8k](/packages/itinerisltd-disallow-pwned-passwords)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
