Skip to content
WordPress.org

English (UK)

  • Themes
  • Plugins
  • News
  • About
  • Support
  • Patterns
  • Get Involved
  • Translate
  • Team P2
  • Get WordPress
Get WordPress
WordPress.org

Plugin Directory

Saral Login Shield

  • Submit a plugin
  • My favourites
  • Log in
  • Submit a plugin
  • My favourites
  • Log in

Saral Login Shield

By Gaurav Agarwal
Download
  • Details
  • Reviews
  • Installation
  • Development
Support

Description

Saral Login Shield lets you change the default WordPress login URL from /wp-login.php to any custom slug you choose. Direct access to wp-login.php is blocked — returning a 404 page or redirecting to a URL of your choice.

Features:

  • Change your login URL to any custom slug
  • Block direct access to wp-login.php (404 or redirect)
  • Optional redirect URL for blocked requests
  • No core files are modified
  • Works with sub-directory WordPress installations
  • Compatible with WP-CLI and cron jobs

Installation

  1. Upload the saral-login-shield folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the Plugins menu in WordPress.
  3. Go to Settings → Saral Login Shield to set your custom login URL.
  4. Bookmark your new login URL before leaving the settings page.

FAQ

What happens to wp-login.php after activation?

Direct requests to /wp-login.php will return a 404 page (or redirect to a URL you specify). Your login form is only accessible at your custom slug.

What if I forget my custom login URL?

Deactivate the plugin via FTP by renaming the plugin folder. This restores normal access to /wp-login.php.

Does this work with multisite?

Not tested with multisite. Use with caution on multisite installations.

Reviews

There are no reviews for this plugin.

Contributors and Developers

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

Contributors
  • Gaurav Agarwal

Translate “Saral Login Shield” into your language.

Interested in development?

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

Change Log

1.0.0

  • Initial release.

Meta

  • Version 1.0.0
  • Last updated 2 months ago
  • Active installations Fewer than 10
  • WordPress version 4.1 or higher
  • Tested up to 6.9.7
  • PHP version 7.0 or higher
  • Language
    English (US)
  • Tags
    Brute Forcecustom login urlhide loginloginsecurity
  • Advanced View

Ratings

No reviews have been submitted yet.

Your review

See all reviews

Contributors

  • Gaurav Agarwal

Support

Got something to say? Need help?

View support forum

  • About
  • News
  • Hosting
  • Privacy
  • Showcase
  • Themes
  • Plugins
  • Patterns
  • Learn
  • Support
  • Developers
  • WordPress.tv ↗
  • Get Involved
  • Events
  • Donate ↗
  • Swag ↗
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org

English (UK)

  • 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.