跳至主要內容
WordPress.org

Taiwan 正體中文

  • 佈景主題目錄
  • 外掛目錄
  • 最新消息
  • 技術支援
  • 關於我們
  • 團隊
  • 取得 WordPress
取得 WordPress
WordPress.org

Plugin Directory

Block Logins with Cloudflare

  • 提交外掛
  • 我的最愛
  • 登入
  • 提交外掛
  • 我的最愛
  • 登入

Block Logins with Cloudflare

由 supersoju 開發
下載
  • 詳細資料
  • 使用者評論
  • 安裝方式
  • 開發資訊
技術支援

外掛說明

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

安裝方式

  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.

常見問題集

What permissions does my Cloudflare API token need?

Your token needs Zone.Zone and Zone.Firewall 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.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Block Logins with Cloudflare〉的開發相關工作。

參與者
  • supersoju

將〈Block Logins with Cloudflare〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄。

變更記錄

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

中繼資料

  • 版本 1.2
  • 最後更新 4 週前
  • 啟用安裝數 少於 10 次
  • WordPress 版本需求 6.0 或更新版本
  • 已測試相容的 WordPress 版本 7.0
  • PHP 版本需求 7.4 或更新版本
  • 語言
    English (US)
  • 標籤:
    Brute Forcecloudflarefirewallloginsecurity
  • 進階檢視

評分

這個項目尚無任何評論記錄。

Your review

查看全部使用者評論

參與者

  • supersoju

技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

檢視技術支援論壇

  • 關於我們
  • 最新消息
  • 主機代管
  • 隱私權
  • 展示網站
  • 佈景主題目錄
  • 外掛目錄
  • 區塊版面配置目錄
  • Learn
  • 技術支援
  • 開發者資源
  • WordPress.tv ↗
  • 共同參與
  • 活動
  • 贊助基金會 ↗
  • Five for the Future
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org

Taiwan 正體中文

  • 查看我們的 X (之前的 Twitter) 帳號
  • 造訪我們的 Bluesky 帳號
  • 造訪我們的 Mastodon 帳號
  • 造訪我們的 Threads 帳號
  • 造訪我們的 Facebook 粉絲專頁
  • Visit our Instagram account
  • Visit our LinkedIn account
  • 造訪我們的 TikTok 帳號
  • Visit our YouTube channel
  • 造訪我們的 Tumblr 帳號
程式碼,如詩
The WordPress® trademark is the intellectual property of the WordPress Foundation.