Skip to content
WordPress.org
  • Showcase
  • Plugins
  • Themes
  • Hosting
  • News
    • Learn WordPress
    • Documentation
    • Education
    • Forums
    • Developers
    • Blocks
    • Patterns
    • Photos
    • Openverse ↗︎
    • WordPress.tv ↗︎
    • About WordPress
    • Make WordPress
    • Events
    • Five for the Future
    • Enterprise
    • Gutenberg ↗︎
    • Job Board ↗︎
    • Swag Store ↗︎
  • Get WordPress
Get WordPress
WordPress.org

Plugin Directory

NaveenCodes Login Guard

  • Submit a plugin
  • My favorites
  • Log in
  • Submit a plugin
  • My favorites
  • Log in

NaveenCodes Login Guard

By Naveen Goyal
Download
  • Details
  • Reviews
  • Installation
  • Development
Support

Description

Login Guard is a powerful, privacy-first login security plugin that runs entirely on your own server — no cloud service, no external API calls, no telemetry.

Core Features

Brute-Force Protection
Automatically detects repeated failed login attempts from the same IP address. When a configurable threshold is reached, the IP is locked out and can be automatically added to the block list.

Live Login Activity Log
Every login attempt — successful, failed, or blocked — is recorded with IP address, username, user agent, and timestamp. Full filter, paginate, and export to CSV.

IP Block List
Manually block specific IP addresses, with permanent or time-limited expiry. Auto-blocked IPs are automatically pruned when their lockout period ends.

IP Allow List
Protect your own IP or your developer’s IP from ever being blocked — even during testing.

Instant Email Alerts
Get notified when a suspicious number of failed attempts is detected from a single IP, or when a successful login occurs from a new location for any user.

Dashboard Overview
At-a-glance stats with a 7-day bar chart (no external chart libraries), auto-refreshed every 30 seconds.

WP Admin Dashboard Widget
Quick stats and last 5 login attempts visible from the main WordPress dashboard.

Privacy

Login Guard stores IP addresses and usernames in your own database. No data leaves your server.

Free, Forever

No upsells, no premium tier, no usage limits. Login Guard is completely free.

❤️ Dedicated in loving memory of Maa — 18 May.

Screenshots

Dashboard — stat cards + 7-day bar chart + recent attempts
Dashboard — stat cards + 7-day bar chart + recent attempts
Activity Log — full log with filters, inline Block IP button, CSV export
Activity Log — full log with filters, inline Block IP button, CSV export
IP Manager — blocked and allowed lists with add/remove controls
IP Manager — blocked and allowed lists with add/remove controls
Settings — thresholds, alerts, log retention
Settings — thresholds, alerts, log retention

Installation

  1. Upload the naveencodes-login-guard folder to /wp-content/plugins/
  2. Activate through Plugins → Installed Plugins
  3. Visit Login Guard → Settings to configure thresholds
  4. Done — your site is now protected

FAQ

Will this lock me out of my own site?

Add your own IP to the Allow List from IP Manager → Allowed to guarantee you are never blocked.

Does it work with Cloudflare or load balancers?

Yes. Login Guard checks HTTP_CF_CONNECTING_IP, HTTP_X_REAL_IP, and HTTP_X_FORWARDED_FOR before falling back to REMOTE_ADDR, so Cloudflare and most reverse-proxy setups work correctly.

How do I unblock an IP?

Go to Login Guard → IP Manager → Blocked and click Unblock next to the IP address.

Does this slow down my login page?

No. The lockout check is a single indexed database query — typically under 1 ms.

Can I export the log?

Yes. Click Export CSV on the Activity Log page to download the full log with applied filters.

Does it send data to any external service?

No. Every feature runs entirely on your server with zero external requests.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“NaveenCodes Login Guard” is open source software. The following people have contributed to this plugin.

Contributors
  • Naveen Goyal

Translate “NaveenCodes Login Guard” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.0.0

  • Initial release
  • Brute-force lockout (configurable max attempts + window + lockout duration)
  • Login activity log with filters, pagination, and CSV export
  • IP block list: manual + auto-block with optional expiry
  • IP allow list: IPs that are never blocked
  • Email alert on suspicious activity (configurable threshold)
  • Email alert on successful login from a new IP address
  • 7-day bar chart dashboard (no external libraries)
  • WP Admin dashboard widget
  • Block IP inline from activity log
  • Daily cron: prune old log entries + expired blocks
  • Full WP.org Plugin Check compliance

Meta

  • Version 1.0.0
  • Last updated 13 hours ago
  • Active installations Fewer than 10
  • WordPress version 6.5 or higher
  • Tested up to 7.0
  • PHP version 8.0 or higher
  • Tags
    Brute Forceip blocklogin protectionlogin securitysecurity
  • Advanced View

Ratings

No reviews have been submitted yet.

Your review

See all reviews

Contributors

  • Naveen Goyal

Support

Got something to say? Need help?

View support forum

  • About
  • News
  • Hosting
  • Privacy
  • Showcase
  • Themes
  • Plugins
  • Patterns
  • Learn
  • Documentation
  • Developers
  • WordPress.tv ↗
  • Get Involved
  • Events
  • Donate ↗
  • Five for the Future
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org
  • Visit our X (formerly Twitter) account
  • Visit our Bluesky account
  • Visit our Mastodon account
  • Visit our Threads account
  • Visit our Facebook page
  • Visit our Instagram account
  • Visit our LinkedIn account
  • Visit our TikTok account
  • Visit our YouTube channel
  • Visit our Tumblr account
Code is Poetry
The WordPress® trademark is the intellectual property of the WordPress Foundation.