Title: IP Blacklist for Cloudflare
Author: Matt Miller
Published: <strong>21 février 2020</strong>
Last modified: 23 octobre 2026

---

Recherche d’extensions

![](https://ps.w.org/ip-blacklist-cloudflare/assets/banner-772x250.jpg?rev=2248573)

![](https://ps.w.org/ip-blacklist-cloudflare/assets/icon-256x256.jpg?rev=2248581)

# IP Blacklist for Cloudflare

 Par [Matt Miller](https://profiles.wordpress.org/millermedianow/)

[Télécharger](https://downloads.wordpress.org/plugin/ip-blacklist-cloudflare.1.2.4.zip)

 * [Détails](https://fr.wordpress.org/plugins/ip-blacklist-cloudflare/#description)
 * [Avis](https://fr.wordpress.org/plugins/ip-blacklist-cloudflare/#reviews)
 * [Développement](https://fr.wordpress.org/plugins/ip-blacklist-cloudflare/#developers)

 [Support](https://wordpress.org/support/plugin/ip-blacklist-cloudflare/)

## Description

Cloudflare provides security and optimization services for websites all around the
internet. WordPress sites are often attacked by bots or hackers and, while Cloudflare
has preset firewall rules to help, it doesn’t always filter out all malicious activity.

Cloudflare IP Blacklist allows WordPress admins to add a list of prohibited usernames
and if someone attempts to log in with one of these usernames, this users IP address
is automatically added to the Cloudflare blacklist. By doing this, the next time
this user attempts to load the site, they will be blocked by Cloudflare before their
requests get to your site’s server. Add an extra layer of security today to your
site!

** This plugin relies on the use of Cloudflare, a third-party service that increases
security and performance for web sites and services across the internet. For more
information, visit the Cloudflare website and their privacy policy. This plugin 
is not officially endorsed, built or maintained by the Cloudflare team; rather, 
we are a development company that uses their services every day! **

### Localizations

This plugin is available in the following languages:

 * Albanian (Shqip)
 * Arabic (العربية)
 * Armenian (Հայերեն)
 * Basque (Euskara)
 * Bengali (বাংলা)
 * Bulgarian (Български)
 * Catalan (Català)
 * Chinese Simplified (简体中文)
 * Croatian (Hrvatski)
 * Czech (Čeština)
 * Danish (Dansk)
 * Dutch (Nederlands)
 * Estonian (Eesti)
 * Finnish (Suomi)
 * French (Français)
 * Galician (Galego)
 * Georgian (ქართული)
 * German (Deutsch)
 * Greek (Ελληνικά)
 * Hebrew (עברית)
 * Hindi (हिन्दी)
 * Hungarian (Magyar)
 * Indonesian (Bahasa Indonesia)
 * Irish (Gaeilge)
 * Italian (Italiano)
 * Japanese (日本語)
 * Korean (한국어)
 * Latvian (Latviešu)
 * Lithuanian (Lietuvių)
 * Macedonian (Македонски)
 * Norwegian (Norsk)
 * Persian (فارسی)
 * Persian – Afghanistan (دری)
 * Polish (Polski)
 * Portuguese – Brazil (Português do Brasil)
 * Portuguese – Portugal (Português)
 * Romanian (Română)
 * Russian (Русский)
 * Serbian (Српски)
 * Slovak (Slovenčina)
 * Slovenian (Slovenščina)
 * Spanish (Español)
 * Swedish (Svenska)
 * Tamil (தமிழ்)
 * Thai (ไทย)
 * Turkish (Türkçe)
 * Ukrainian (Українська)
 * Urdu (اردو)
 * Vietnamese (Tiếng Việt)
 * Welsh (Cymraeg)

**Development of this plugin is done [on GitHub](https://github.com/Miller-Media/cloudflare-ip-blacklist).
Pull requests welcome. Please see [issues reported](https://github.com/Miller-Media/cloudflare-ip-blacklist/issues)
there before going to the plugin forum.**

## Captures d’écrans

[[

[[

## FAQ

### How do I set up my Cloudflare API credentials?

Go to Settings > Cloudflare IP Blacklist in your WordPress admin. You can authenticate
using either a scoped API Token (recommended) or your Global API Key (legacy). For
API Tokens, create one in your Cloudflare dashboard with exactly these two permissions:«
Zone > Zone > Read » and « Zone > Firewall Services > Edit », with Zone Resources
including the zone(s) for your site. You can create API Tokens and find your Global
API Key at https://dash.cloudflare.com/profile/api-tokens.

### What happens when someone tries to log in with a banned username?

Their IP address is automatically added to your Cloudflare firewall block list. 
On their next visit, Cloudflare blocks them before the request ever reaches your
server, saving your server resources.

### Can I use an API Token instead of the Global API Key?

Yes! As of version 1.0.5, scoped API Tokens are fully supported and recommended 
over the Global API Key. Create a token in your Cloudflare dashboard with « Zone
> Zone > Read » and « Zone > Firewall Services > Edit » permissions.

### What PHP and WordPress versions are supported?

The plugin requires PHP 8.1 or higher and has been tested up to WordPress 7.1.

### What languages are supported?

The plugin is available in 30 languages with more being added regularly. We are 
working toward supporting 50 languages total!

## Avis

Il n’y a aucun avis pour cette extension.

## Contributeurs/contributrices & développeurs/développeuses

« IP Blacklist for Cloudflare » est un logiciel libre. Les personnes suivantes ont
contribué à cette extension.

Contributeurs

 *   [ Matt Miller ](https://profiles.wordpress.org/millermedianow/)
 *   [ mikemm01 ](https://profiles.wordpress.org/mikemm01/)

[Traduisez « IP Blacklist for Cloudflare » dans votre langue.](https://translate.wordpress.org/projects/wp-plugins/ip-blacklist-cloudflare)

### Le développement vous intéresse ?

[Parcourir le code](https://plugins.trac.wordpress.org/browser/ip-blacklist-cloudflare/),
consulter le [SVN dépôt](https://plugins.svn.wordpress.org/ip-blacklist-cloudflare/),
ou s’inscrire au [journal de développement](https://plugins.trac.wordpress.org/log/ip-blacklist-cloudflare/)
par [RSS](https://plugins.trac.wordpress.org/log/ip-blacklist-cloudflare/?limit=100&mode=stop_on_copy&format=rss).

## Journal des modifications

#### 1.2.4

 * Fixed: the admin stylesheet and script now load on installs from WordPress.org.
   Their URLs were built with a hardcoded folder name (ip-blacklist-for-cloudflare)
   that doesn’t match the installed folder (ip-blacklist-cloudflare), so both returned
   404
 * Fixed: the readme FAQ now lists the correct API token permissions (Zone > Zone
   > Read and Zone > Firewall Services > Edit), matching the API Token field on 
   the settings page. It previously said Account > Account Firewall Access Rules
   > Edit, which the zone-level endpoints the plugin uses don’t accept

#### 1.2.3

 * Fixed: repeated login attempts with a banned username no longer send duplicate
   block requests to Cloudflare (error 10009) when the IP is already recorded as
   blocked
 * Fixed: blocking an IP no longer drops zones previously recorded for that IP
 * If you delete a rule by hand in Cloudflare, also remove the IP in the plugin 
   to re-block it.
 * Added a link to the GitHub repository in the readme
 * Tested up to WordPress 7.1
 * Fixed: translations load again — the text domain now matches the WordPress.org
   slug (ip-blacklist-cloudflare)
 * Removed external links from the API credential field descriptions; see the readme
   FAQ for where to find your API Token or Global API Key

#### 1.2.2

 * Fixed text domain mismatch: updated all i18n calls to use correct slug `ip-blacklist-
   for-cloudflare`
 * Renamed translation files to match correct text domain
 * Added ABSPATH checks to ReviewNotice.php and SiteSettingsView.php
 * Fixed unescaped output in SiteSettingsView.php (printf calls now use wp_kses_post
   + numbered placeholders)
 * Removed deprecated load_plugin_textdomain() call (WordPress handles this since
   4.6)
 * Replaced parse_url() with wp_parse_url() in Helpers.php
 * Updated « Tested up to » to 6.9

#### 1.2.1

 * Added GPL license declaration to plugin header
 * Updated Author URI
 * Added direct file access protection to all PHP files
 * Improved output escaping and input sanitization
 * Removed non-production files from plugin directory

#### 1.2.0

 * Added translations for 50 languages
 * Added POT translation template file
 * Added opt-in data cleanup on plugin deletion
 * Added Settings link on Plugins page
 * Updated FAQ section
 * Updated readme with complete language list

#### 1.1.1

 * Added translations for Russian, Polish, Dutch, Turkish, and Swedish
 * Updated localization section in readme

#### 1.1.0

 * Added Chinese Simplified (zh_CN) translation

#### 1.0.9

 * Added Japanese (ja) translation

#### 1.0.8

 * Tested up to WordPress 6.9.1

#### 1.0.7

 * Added dismissible review prompt notice after 14 days of usage

#### 1.0.6

 * Added translations for Spanish, French, German, Portuguese (Brazilian), and Italian

#### 1.0.5

 * Added support for scoped API tokens as an alternative to Global API Key
 * Added connected state UI with credential status bar and masked credential preview
 * Added Disconnect action to easily switch authentication methods
 * Added internationalization (i18n) support for all user-facing strings
 * Labeled Global API Key as Legacy, recommending API Token for new installs
 * Added required Cloudflare token permissions in API Token field description

#### 1.0.4

 * Added output escaping to settings page
 * Scoped nonce verification to plugin settings page only
 * Removed unnecessary error suppression on nonce verification

#### 1.0.3

 * Improved setup instructions for Cloudflare API credentials

#### 1.0.2

 * Compatibility updates for WordPress 6.9 and PHP 8.1+
 * Fixed PHP 8.2 dynamic property deprecation warnings

#### 1.0.1

 * Initial public release

## Méta

 *  Version **1.2.4**
 *  Dernière mise à jour **il y a 3 semaines**
 *  Installations actives **20+**
 *  Testé jusqu’à **7.1.4**
 *  Version de PHP ** 8.1 ou plus **
 *  Langue
 * [English (US)](https://wordpress.org/plugins/ip-blacklist-cloudflare/)
 * Étiquettes
 * [blacklist](https://fr.wordpress.org/plugins/tags/blacklist/)[cloudflare](https://fr.wordpress.org/plugins/tags/cloudflare/)
   [firewall](https://fr.wordpress.org/plugins/tags/firewall/)[ip block](https://fr.wordpress.org/plugins/tags/ip-block/)
   [security](https://fr.wordpress.org/plugins/tags/security/)
 *  [Vue avancée](https://fr.wordpress.org/plugins/ip-blacklist-cloudflare/advanced/)

## Évaluations

Aucun avis n’a encore été envoyé.

[Votre avis](https://wordpress.org/support/plugin/ip-blacklist-cloudflare/reviews/#new-post)

[Tout voir](https://wordpress.org/support/plugin/ip-blacklist-cloudflare/reviews/)

## Contributeurs

 *   [ Matt Miller ](https://profiles.wordpress.org/millermedianow/)
 *   [ mikemm01 ](https://profiles.wordpress.org/mikemm01/)

## Support

Quelque chose à dire ? Besoin d’aide ?

 [Voir le forum de support](https://wordpress.org/support/plugin/ip-blacklist-cloudflare/)