[WordPress] 外掛分享: WT Hardening

首頁 › 外掛目錄 › WT Hardening
WordPress 外掛 WT Hardening 的封面圖片
30+
安裝啟用
—
尚無評分
4 天前
最後更新
—
問題解決
WordPress 6.1+ PHP 8.2+ v1.2.0 上架:2026-05-03

內容簡介

WT Hardening 是一款輕量級的模組化安全外掛,能啟用最重要的 WordPress 強化措施,無需修改佈景主題、wp-config.php 或 .htaccess。所有功能透過 WordPress 鉤子運作,並可隨時一鍵停用,完全免費且無廣告。

【主要功能】
• 阻擋 XML-RPC 攻擊
• 隱藏使用者登入資訊
• 轉向作者存檔至首頁
• 隱藏 WP 版本資訊
• 登入錯誤訊息統一化
• 記錄安全事件日誌

外掛標籤

開發者團隊

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

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

原文外掛簡介

WT Hardening is a lightweight, modular security plugin that turns on the most important WordPress hardening measures without modifying your theme, wp-config.php, or .htaccess. Everything works through WordPress hooks and can be disabled at any moment with a single click.
The plugin is completely free, without a PRO version, without ads, and without sending data to external servers. Built by the Webmasters.Team crew for daily WordPress work.
Modules

XML-RPC: blocks xmlrpc.php (403) and filters the XML-RPC methods. Stops brute-force attacks through the most attacked WordPress endpoint.
User enumeration: hides logins by blocking /wp/v2/users in the REST API for unauthenticated users.
Author archive: redirects /?author=1 and author archive URLs to the homepage for visitors who are not logged in, and removes the users sitemap (another enumeration vector).
Hide oEmbed author: strips author_name and author_url from oEmbed responses (WPScan-detectable user-enumeration vector) and drops the oEmbed discovery tags from .
Hide WP version: removes the tag and redundant meta tags (wlwmanifest, rsd, shortlink), and replaces the ?ver= values of front-end assets with a short keyed hash: the versions are not revealed, but the value still changes after every update, so browsers and caches load the new files.
X-Pingback: removes the X-Pingback HTTP header from all responses.
Login errors: replaces the specific “wrong login / wrong password” messages with a single generic text (does not reveal whether a login exists) on wp-login.php, the WooCommerce login form, REST API application passwords (HTTP Basic auth) and XML-RPC.
Login limiter: blocks an IP (for IPv6, its /64 network) for X minutes after N failed attempts on wp-login.php, the WooCommerce login form, XML-RPC and REST API application passwords. Repeated lockouts within 24 hours escalate to a long lockout (default: 4th lockout = 24 hours). Shows the number of attempts left, an IP/CIDR allowlist, Cloudflare / reverse-proxy support, one-click unlock in the log and optional email alerts. Administrators can also lock out an address by hand, for the regular or long lockout time or until it is unlocked. Optionally (Apache only, off by default) long and permanent lockouts are also written to .htaccess, so the server rejects those addresses before WordPress starts. Every address in the logs opens a page about it: failed and successful logins with the accounts involved, WooCommerce orders and comments from it, its lockouts and event log entries. Data lives in dedicated tables (not wp_options), with hourly cleanup of old entries.
File editor: sets DISALLOW_FILE_EDIT, hiding the theme and plugin editor in the admin (an attacker who compromises an account cannot inject a backdoor through the browser).
Password policy: enforces minimum length and complexity (upper and lower case, digits, optionally symbols) for profile updates, registration, password reset and the REST API users endpoints.
Security HTTP headers: X-Frame-Options, X-Content-Type-Options, Referrer-Policy, Permissions-Policy, optionally HSTS (use with care because browsers cache it for a year) with a separate opt-in for includeSubDomains. HSTS is also sent when HTTPS ends at Cloudflare or at a trusted reverse proxy (X-Forwarded-Proto).
Event log: records logins (successful and failed), registrations, user changes, plugin activations and deactivations, theme switches, and settings updates. Retention defaults to 30 days. Visible in the admin panel.

Works with WT Notifier
With WT Notifier active, its notifications about logins and failed logins can carry a Check or block IP link (add it in WT Notifier under Links). The link opens the WT Hardening page about the address: who tried to log in from it and with which accounts, whether a login succeeded, WooCommerce orders and comments from it. One click there locks it out. WT Hardening also gives WT Notifier the visitor address it detects, so behind Cloudflare or a reverse proxy the notifications show the real visitor and not the proxy.
What makes it different

Modular architecture: each module is a separate class and can be disabled in the settings without affecting the others.
Zero external dependencies: no Composer, no vendor lock-in, no cloud APIs.
No data leaves the instance: everything stays in the local MySQL/MariaDB database. The only outgoing request is a weekly download of Cloudflare’s public IP range lists (see External services), which sends nothing about your site or visitors.
Internationalization ready: full coverage with __()/esc_html__(), a POT file for translators and a bundled Polish translation.
Clean uninstall: when the plugin is removed, options, tables, and cron jobs are dropped.

What WT Hardening does NOT do (by design)

Does not scan for malware. That is a different problem and a different toolset.
Does not ship telemetry to the cloud. All data is local.
Does not add a WAF at the application layer. That belongs to the server or CDN.

For those needs we recommend dedicated plugins (e.g. Wordfence) or an infrastructure layer (Cloudflare, fail2ban).
External services
This plugin connects to one external service: Cloudflare’s published IP range lists. It needs them to recognise requests that come through Cloudflare, so that the login limiter and the event log use the visitor address from the CF-Connecting-IP header only for genuine Cloudflare traffic (and HSTS is sent when HTTPS ends at Cloudflare).

What is requested: two plain-text files, https://www.cloudflare.com/ips-v4 and https://www.cloudflare.com/ips-v6.
When: once a week, by a WP-Cron event (wt_hardening_cloudflare_ranges), and not on visitor requests.
What is sent: nothing beyond a normal HTTP GET request from your server (its IP address and a WT-Hardening/ user agent). No cookies, no site address, no visitor or user data.
The downloaded lists are used only if every line is a valid IP range; otherwise the previous list (or the copy bundled with the plugin) is kept. Developers can turn the update off with the wt_hardening_update_cloudflare_ranges filter (return false); the bundled list is then used.
The service is provided by Cloudflare, Inc.: Website Terms of Use, Privacy Policy.

延伸相關外掛

文章
Filter
Mastodon