[WordPress] 外掛分享: Blockary – Access Firewall

首頁 › 外掛目錄 › Blockary – Access Firewall
全新外掛
安裝啟用
—
尚無評分
9 天前
最後更新
—
問題解決
WordPress 6.4+ PHP 8.1+ v1.1.0 上架:2026-10-04

內容簡介

Blockary 是一款防火牆外掛,能根據國家封鎖訪客並防止登錄頁面的密碼猜測攻擊。透過設定白名單或黑名單,確保只有授權的用戶能夠訪問網站,增強網站安全性。

【主要功能】
• 根據國家封鎖或允許訪客
• 登錄保護,限制錯誤登錄次數
• 隱藏用戶名,防止信息洩露
• 自動下載國家數據庫以更新
• 記錄被封鎖請求和登錄失敗

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.1.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Blockary – Access Firewall」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Blockary blocks visitors by country and stops password guessing on the login page.
The country rule works as a block list or as an allow list. You pick the countries on the settings page. The plugin reads the country from the Cloudflare header or from a local copy of the free “IP to Country Lite” database from DB-IP. Visitors from the whitelist and from private networks always pass. Logged-in users pass by default. You can turn that off on the settings page. Administrators always pass.
The login protection counts failed logins per address and per username. An address that reaches the limit gets a temporary ban. The ban time grows with each ban, and a permanent ban follows after a number of temporary bans. The plugin can also lock a username, show the same error for a wrong username and a wrong password, hide usernames from visitors, and turn off XML-RPC.
The plugin loads as the first plugin. It decides a request without a login cookie before WordPress loads the other plugins. It decides a request with a login cookie as soon as WordPress can read that cookie. Blocked requests do not reach the theme. A log on the settings page shows the blocked requests, the failed logins, and the bans.
Load order
The plugin keeps itself first in the list of active plugins. WordPress then loads it before the other plugins, so a blocked request costs less and stays invisible to the other plugins. The plugin changes only the order of that list in the database. It writes no file for this and you do not have to set anything up.
Optional: the loader file
A loader file in the folder wp-content/mu-plugins is only useful when another plugin moves itself in front of Blockary. The plugin does not write that file itself. You download it on the settings page and copy it into the folder by hand, for example with SFTP. The settings page shows the exact path. The loader runs the decision only while the plugin is active. Without the plugin it does nothing. When you delete the plugin, delete the loader file too. When the settings page shows “Outdated” for the load order, download the file again and replace the copy.
Recovery
If a rule locks you out, add this line to wp-config.php:
define( 'BLOCKARY_DISABLE', true );

The plugin then blocks nothing until you remove the line.
External services
The plugin downloads the country database “IP to Country Lite” from DB-IP when you select the local database as the country source. The download runs once after you select that source and then once a month through WP-Cron. You can also start it on the settings page.
The request goes to https://download.db-ip.com/free/. The request carries only the name of the database file for the current month. It carries no data about your site or your visitors. The database is licensed under CC BY 4.0. The settings page shows the attribution link that the license requires.
Terms and privacy policy of DB-IP: https://db-ip.com/about and https://db-ip.com/privacy.php
The plugin sends no other request to an external service.

延伸相關外掛

文章
Filter
Mastodon