Login URL Change
Login URL Change replaces the default WordPress login URL (/wp-login.php) with a custom URL of your choice.
Why Change the Login URL
The WordPress login page is located at the well-known URL /wp-login.php. Attackers use automated tools to launch brute-force attacks against this known endpoint.
Changing the login URL provides the following benefits:
- Block automated attacks: Bots target
/wp-login.php, so changing the URL alone neutralizes many automated attacks - Reduce server load: Fewer unwanted requests, saving server resources
- Reduce attack surface: Make the login page harder to discover
Important Note: Changing the login URL is a form of "security through obscurity" and is not a fundamental security solution on its own. Always combine it with brute-force protection, reCAPTCHA, and other security measures.
Configuration
- Navigate to SentinelSecurity → Login Security → Login URL Change
- Toggle the switch to Enabled
- Enter the new slug in the Custom Login URL field (e.g.,
my-secure-login) - Click Save
Tips for Choosing a URL
Recommended URL examples:
/dashboard-access//team-login//portal-entry/
URLs to avoid:
/admin/— Too easy to guess/login/— Too easy to guess/wp-admin/— Too close to the WordPress default- Simple words — May be tried in dictionary attacks
How It Works
Trailing Slash Enforcement
SentinelSecurity enforces a trailing slash.
example.com/my-login/→ Displays the login pageexample.com/my-login→ Returns 404 Not Found
Access to Default URLs
When Login URL Change is enabled, access to the following URLs will be redirected to the 404 page (theme's 404 template):
/wp-login.php/wp-login.php?action=registerand all other action parameters
Session Timeout
If your session expires while working in the admin dashboard, you will be automatically redirected to the custom login URL. The WordPress session timeout modal also works correctly with the custom URL.
Recovery If You Forget the URL
Method 1: Disable the Plugin
- Connect to the server via FTP/SFTP
- Rename the
/wp-content/plugins/sentinel-security/folder (e.g., tosentinel-security-disabled) - Log in using the default
/wp-login.php - Rename the folder back and reactivate the plugin
- Your settings will be automatically restored
Method 2: Check the Database
Use phpMyAdmin or similar tool to check the sentinel_security_login_settings entry in the wp_options table to find your configured URL.
Notes
- After changing the login URL, be sure to bookmark the new URL
- If working in a team, share the new URL with all members
- Ensure the new login URL is excluded from caching in your CDN or cache plugin settings