Saral Login Shield

Plugin Banner

Saral Login Shield

by Gaurav Agarwal

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

1.0.0

  • Initial release.
Back to top