Changing your login URL is one of the easiest and most effective ways to stop automated bots from hammering your site, because they specifically look for wp-admin or wp-login.php.
The safest way to do this is using a lightweight plugin. Manual coding is possible but risky because it involves complex redirects that can break your site if done incorrectly.
Recommended Method: Using “WPS Hide Login” Plugin
This plugin is extremely popular (millions of installs), free, and very lightweight. It doesn’t actually change files in your core WordPress; it just intercepts page requests.
Step 1: Install the Plugin
- Log in to your WordPress Dashboard.
- Go to Plugins → Add New Plugin.
- Search for WPS Hide Login.
- Click Install Now and then Activate.
Step 2: Configure Your New URL
- Once activated, go to Settings → WPS Hide Login (or sometimes it is located under Settings → General at the very bottom).2
- Scroll down to the WPS Hide Login section.
- Login URL: In the field next to
Login url, enter your new secret word.- Example: change it to
my-manager,secret-entry, orstore-login. - Result: Your new login link will be
yourdomain.com/my-manager.
- Example: change it to
- Redirection URL: This is where people go if they try to visit the old
wp-adminlink. You can leave it as404(page not found) to confuse bots. - Click Save Changes.
Step 3: Test It
- Log out of your website.
- Try to visit
yourdomain.com/wp-admin. You should see a “404 Not Found” error. - Now visit
yourdomain.com/my-manager(or whatever you chose). You should see the login screen.
Important Safety Tips
1. Bookmark Your New URL
If you forget the new URL, you cannot log in. Bookmark it immediately after setting it up.
2. What if you get locked out?
If you forget the URL or the plugin conflicts with something else, don’t panic. You can disable it easily via Hostinger if that’s your hosting service:
- Log in to Hostinger hPanel.
- Go to File Manager →
public_html→wp-content→plugins. - Find the folder named
wps-hide-login. - Rename the folder to something else (e.g.,
wps-hide-login-disabled). - This forces WordPress to disable the plugin, and your old
wp-adminlink will start working again immediately.