Description
WPTwins is an independent publisher. This plugin is not affiliated with or endorsed by the WordPress Foundation or the WordPress project.
WPTwins Guard brings practical login controls and local security configuration checks into one dashboard. Review the evidence, choose the protections that fit your site, and keep a bounded record of login and administrative events.
All included features are free. There is no trial, payment requirement, account registration or license activation. Protection controls start disabled so you can test them before enabling them.
Login protection you control
- Optionally limit failed password logins: five failures per account and direct connection IP within a 15-minute window.
- Username and email aliases share the same account counter. Unknown usernames share a counter per source IP.
- Atomic database counters avoid lost increments during concurrent requests.
- Optionally choose a custom login path on single-site installations with working pretty permalinks.
- Blocked default login and signed-out dashboard routes return HTTP 404 using the active theme, with an index-template fallback.
Local checks and optional hardening
- Review configured HTTPS URLs, debug output, configuration-file permissions and the cached plugin-update inventory.
- Optionally block the built-in theme and plugin file editors.
- Optionally block XML-RPC password authentication.
- Optionally add nosniff and a referrer policy to WordPress responses.
- Review security events and export local reports as JSON.
Clear boundaries
Guard is not a malware scanner, vulnerability feed, web application firewall, backup service or two-factor authentication provider. A successful configuration check is not a guarantee that a site is secure. Update availability is not a vulnerability diagnosis.
The custom login path does not replace authentication and may be revealed by site-generated login links. Login throttling does not protect application passwords or stop distributed attacks across many IP addresses. Behind a proxy or CDN, configure your server to expose the correct client IP: Guard deliberately does not trust forwarded-IP headers.
No WordPress core files, .htaccess files or Nginx configuration are rewritten. Existing sessions remain signed in. Test custom login paths with SSO, membership plugins and other login integrations before using them on production. Multisite custom-login routing is not supported.
Optional companion
Guard works independently of WP-MachCache. A small Explore WP-MachCache link appears only on Overview and disappears when WP-MachCache is installed, even if inactive. WP-MachCache is a separate paid performance product, not a security tool. The link never changes security findings, tracks visitors or installs software.
Privacy
Guard stores settings, reports, bounded local events and expiring login-counter fingerprints in the WordPress database. No telemetry, remote scanning, visitor identifiers or raw login credentials are stored in reports. Exports stay on your device unless you share them. No external service account is needed.
Artwork and trademarks
Bundled source and the Guard icon are GPL-2.0-or-later. This WordPress.org distribution excludes WPTwins and WP-MachCache brand logo artwork; by WPTwins is text only. Trademark rights are separate; see ASSETS-LICENSE.txt and TRADEMARKS.txt.
Screenshots



Installation
- Upload the ZIP through Plugins > Add New > Upload Plugin, or install from the directory when available.
- Activate WPTwins Guard and open GUARD in the dashboard.
- Run the local security checks and review the results.
- Enable only the protection controls you need, testing on staging first.
- Before changing the login path, keep an authenticated administrator session open and confirm you have server or WP-CLI recovery access.
FAQ
-
Is Guard completely free?
-
Yes. Every included feature works without payment, a WPTwins account or a license key. WP-MachCache is optional and separate.
-
Does activating Guard immediately block logins?
-
No. Protection settings default to off on a new installation. Activation records a local event. You choose which controls to enable.
-
How do failed-login limits work?
-
Five failed password attempts within a 15-minute window block further password authentication for that account and direct IP until the window expires. Username and email aliases share a counter. Different unknown usernames share a counter per source IP. This is not a permanent IP ban or a global IP blocklist.
-
How can I recover access after a lockout?
-
Wait for the counter window to expire. For emergency recovery, add define(‘WPTWINS_GUARD_RECOVERY’, true); to wp-config.php before WordPress loads, or deactivate Guard with WP-CLI: wp plugin deactivate wptwins-guard. Recovery mode bypasses protections, including the custom login route. Remove the recovery constant after resolving the issue. There is currently no per-IP unblock button.
-
What happens when I enable a custom login URL?
-
Guard routes the selected path to WordPress core login handlers, including password reset, logout and registration. Direct wp-login.php and signed-out dashboard access return a themed 404. The dashboard remains at wp-admin for signed-in users. The server may first redirect /wp-admin to /wp-admin/. Public links may reveal the custom login path.
-
Does Guard disable the REST API or all XML-RPC traffic?
-
No. The optional XML-RPC control targets password authentication; it does not disable pingbacks or the REST API. Test any mobile publishing or integrations that depend on XML-RPC.
-
What data is stored or sent outside my site?
-
Guard does not send telemetry or run external scans. Counters store salted fingerprints rather than raw IP addresses or login names. Event entries store event types, times and counts, not passwords, usernames, IP addresses or visitor URLs. Clicking an external product/support link opens that website normally.
-
How long are events and counters kept?
-
The log displays at most 200 entries from the last 30 days. Older events are filtered on read and pruned on write; similar events within a minute are grouped. Event writes are best-effort under concurrency. Counter enforcement expires after 15 minutes; WP-Cron prunes expired database rows hourly, up to 5,000 per run.
-
What happens when I deactivate or uninstall Guard?
-
Deactivation stops protection hooks and counter cleanup jobs, removes counters and preserves settings and reports. Uninstall removes plugin options and counters. If WordPress removes the plugin files without running uninstall, database cleanup cannot run.
-
Will this work with a proxy, CDN or cache plugin?
-
Configure the server’s real client IP correctly before enabling login limits. Login responses should not be cached; Guard sends no-cache signals, but upstream caches and static responses remain controlled by your server. Test your setup rather than assuming compatibility with every provider.
-
Where will plugin updates come from?
-
WordPress.org is the intended distribution channel, subject to approval. Until it is listed, install updates manually from WPTwins. Guard has no custom update server.
Reviews
There are no reviews for this plugin.
Contributors & Developers
“WPTwins-Guard” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “WPTwins-Guard” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
0.4.11
- Dates follow Guard translations with English fallback and preserve the site timezone.
- Include the year in event timestamps.
- Refresh directory screenshots in English.
0.4.10
- New blue and cyan W shield icon with a transparent background.
- Subtle hover and keyboard-focus glow, respecting reduced-motion preferences.
- Versioned icon URLs refresh artwork after updates; security behavior and settings are unchanged.
0.4.9
- Load the core login handler once when routing the custom login URL.
- Correct readme heading spacing for directory rendering.
0.4.8
- Small WP-MachCache recommendation only at the top right of Overview, without the product logo or manual hide controls.
- Automatically hide the recommendation when WP-MachCache is installed, even if inactive. Security controls and scores are unchanged.
0.4.7
- Website distribution only: publisher wordmark update. Exclusive brand artwork is excluded from this WordPress.org package.
- Subtle hover/focus light sweep with reduced-motion support; local, versioned assets.
- Website distribution. No changes to protection, diagnostics, caching or licensing behavior.
0.4.6
- Enforce authorization inside the custom login URL settings handler as well as the shared dispatcher.
- Normalize read-only admin tab input with scalar validation and unslashing.
- Clarify independent publisher identity for directory review.
0.4.5
- Keep open product icons and text-only by WPTwins attribution.
- Remove WPTwins and TurboCache brand artwork from directory packages; preserve Explore TurboCache link.
0.4.4
- Restored original logos with explicit GPL artwork licensing and separate trademark notice.
0.4.2
- New navy, cobalt and yellow visual system matching WPTwins, refined controls and subtle motion effects.
- Reduced-motion support; functional settings and stored data are unchanged.
0.4.1
- Free distribution without license activation.
- Add an optional, dismissible companion card for TurboCache on Overview, separate from all security findings.
