Prejsť na obsah
WordPress.org

Slovensko

  • Témy
  • Pluginy
  • News
  • Podpora
  • O nás
  • Meetupy
  • Slack
  • Preklad
  • Komunita
  • Kontakt
  • Získajte WordPress
Získajte WordPress
WordPress.org

Plugin Directory

Block Logins with Cloudflare

  • Nahrať plugin
  • Moje obľúbené
  • Prihlásiť sa
  • Nahrať plugin
  • Moje obľúbené
  • Prihlásiť sa

Block Logins with Cloudflare

Od supersoju
Stiahnuť
  • Podrobnosti
  • Recenzie
  • Inštalácia
  • Vývoj
Podpora

Popis

Block Logins with Cloudflare helps protect your WordPress site from brute-force attacks by blocking IPs at the Cloudflare firewall after a configurable number of failed login attempts.

  • Block IPs via Cloudflare after X failed login attempts
  • Block IPs that generate excessive 404 responses (bots and scanners)
  • Block IPs attacking via XML-RPC with intelligent detection
  • Automatic unblocking after a configurable duration
  • Whitelist IPs to never block or track them (supports IPv6 CIDR ranges)
  • View and manually unblock blocked IPs from the admin
  • Block source tracking — see whether each IP was blocked via login, XML-RPC, or 404
  • Secure settings page with Cloudflare API token validation
  • Hourly cron job for automatic maintenance

External Services

This plugin relies on the Cloudflare API to function. It communicates with Cloudflare’s external servers to block IP addresses at the firewall level.

What is the Cloudflare API and what is it used for?
The Cloudflare API is a RESTful service provided by Cloudflare, Inc. that allows programmatic management of Cloudflare firewall rules. This plugin uses it to automatically block and unblock IP addresses based on failed login attempts, XML-RPC attacks, and 404 scanning activity.

What data is sent and when?
The plugin sends the following data to Cloudflare’s API servers:

  1. During settings validation (when you save Cloudflare credentials):

    • Your Cloudflare API token (for verification)
    • Endpoint: https://api.cloudflare.com/client/v4/user/tokens/verify
  2. When blocking an IP (after a threshold is reached):

    • The IP address to be blocked
    • Your Cloudflare email address and API key/token
    • Your Cloudflare Zone ID
    • A note describing the reason for the block
    • Endpoint: https://api.cloudflare.com/client/v4/zones/{zone_id}/firewall/access_rules/rules

No personally identifiable information about your WordPress users is transmitted. Only IP addresses are sent to Cloudflare.

Service provider information:
– Service: Cloudflare API
– Provider: Cloudflare, Inc.
– Terms of Service: https://www.cloudflare.com/terms/
– Privacy Policy: https://www.cloudflare.com/privacypolicy/
– API Documentation: https://developers.cloudflare.com/api/

Required for functionality:
This plugin requires a Cloudflare account and will not function without valid Cloudflare API credentials. The external API calls are essential to the plugin’s core functionality.

License

GNU General Public License v2 or later

Inštalácia

  1. Upload the plugin files to the /wp-content/plugins/block-logins-cf directory, or install through the WordPress plugins screen.
  2. Activate the plugin through the ‚Plugins‘ screen.
  3. Go to Block Logins CF in the admin sidebar to configure your Cloudflare credentials and settings.

Časté otázky

How do I create a Cloudflare API token?

  1. Log in to the Cloudflare dashboard and go to My Profile → API Tokens.
  2. Click Create Token, then choose Create Custom Token.
  3. Give the token a name (e.g. „Block Logins WP“).
  4. Under Permissions, add: Zone → Zone → Read, and Zone → Firewall Services → Edit.
  5. Under Zone Resources, select Specific zone and choose your domain.
  6. Click Continue to summary, then Create Token.
  7. Copy the token — it is shown only once — and paste it into the plugin settings.

Full instructions: https://developers.cloudflare.com/fundamentals/api/get-started/create-token/

What permissions does my Cloudflare API token need?

Your token needs Zone → Zone → Read and Zone → Firewall Services → Edit permissions for the relevant zone.

Where do I find my Cloudflare Zone ID?

In your Cloudflare dashboard, select your domain and look for the Zone ID in the Overview tab.

Does this block at the Cloudflare level or just WordPress?

This plugin blocks IPs at the Cloudflare firewall, stopping attacks before they reach your server.

What does 404 blocking protect against?

It detects bots and vulnerability scanners that probe your site by requesting many non-existent URLs. When an IP exceeds the configurable 404 threshold, it is blocked via Cloudflare just like a brute-force login attacker.

Recenzie

Pre tento plugin nie sú žiadne recenzie.

Prispievatelia a vývojári

“Block Logins with Cloudflare” je softvér s otvoreným zdrojovým kódom. Do tohto pluginu prispeli nasledujúci ľudia.

Prispievatelia
  • supersoju

Preložiť „Block Logins with Cloudflare“ do vašho jazyka.

Máte záujem o vývoj?

Prehľadávajte zdrojový kód, preskúmajte SVN repozitár, alebo sa prihláste na odber vývojárskeho logu cez RSS.

Zoznam zmien

1.1

  • Added 404-based IP blocking to detect and block bots and vulnerability scanners
  • Added XML-RPC protection with intelligent attack detection
  • Added block source tracking — blocked IPs now show whether they were blocked via login, XML-RPC, or 404
  • Added 404 activity log in the Blocked IPs admin page
  • Added IPv6 CIDR range support in the IP whitelist
  • Added caching for Cloudflare API token validation to prevent throttling

1.0

  • Initial release

Meta

  • Verzia 1.2.1
  • Posledná aktualizácia Pred 1 týždeň
  • Aktívne inštalácie Menej než 10
  • Verzia WordPress 6.0 alebo novšia
  • Testované do verzie 7.0.4
  • Verzia PHP 7.4 alebo novšia
  • Jazyk
    English (US)
  • Značky
    Brute Forcecloudflarefirewallloginsecurity
  • Rozšírené zobrazenie

Hodnotenia

Zatiaľ neboli odoslané žiadne recenzie.

Your review

See all reviews

Prispievatelia

  • supersoju

Podpora

Máte čo povedať? Potrebujete pomoc?

Zobraziť fórum podpory

  • O WordPress
  • Novinky
  • Hosting
  • Súkromie
  • Ukážka
  • Témy
  • Pluginy
  • Vzory
  • Vzdelávanie
  • Podpora
  • Vývojári
  • WordPress.tv ↗
  • Zapojte sa
  • Podujatia
  • Prispieť ↗
  • Swag ↗
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org

Slovensko

  • Navštívte náš účet na X (predtým Twitter)
  • Navštívte náš účet na platforme Bluesky
  • Navštívte náš účet na Mastodone
  • Navštívte náš účet na platforme Threads
  • Navštívte našu stránku na Facebooku
  • Navštívte náš účet Instagram
  • Navštívte náš účet LinkedIn
  • Navštívte náš účet na platforme TikTok
  • Navštívte náš kanál YouTube
  • Navštívte náš účet na platforme Tumblr
Kód je poézia.
The WordPress® trademark is the intellectual property of the WordPress Foundation.