How to Protect WordPress from Brute Force Attacks
This guide explains how to protect your WordPress website from brute force attacks by changing the default login URL.
What Is a Brute Force Attack?
A brute force attack is when attackers try to guess your login credentials by repeatedly sending requests to /wp-login.php or /wp-admin.
This can:
- slow down your server;
- increase load;
- lead to unauthorized access.
When to Use This
- you use WordPress;
- your server shows high load;
- many login attempts in logs;
- you want to improve security.
Important:
After changing the login URL, the default /wp-login.php will no longer work.
After changing the login URL, the default /wp-login.php will no longer work.
Step 1: Log in to WordPress
Open your WordPress admin panel.
Step 2: Install Plugin
Go to Plugins → Add New.
Search for WPS Hide Login.
Click Install Now and then Activate.
Step 3: Configure Login URL
Go to plugin settings.
Find the Login URL field.
Change it to a custom value (for example: myadmin).
Step 4: Save Settings
Click Save Changes.
Important Notes
- bookmark your new login URL;
- default login URL will be disabled;
- share new URL only with trusted users.
What to Do If You Forget Login URL
- disable plugin via FTP;
- rename plugin folder;
- restore access to default login.
Alternative Protection Methods
- limit login attempts;
- use CAPTCHA;
- enable firewall (WAF);
- restrict access by IP.
Common Issues
- cannot access admin panel;
- forgot new login URL;
- plugin conflicts;
- cache interfering with redirect.
Tips
- use strong passwords;
- combine multiple protection methods;
- monitor login attempts in logs.
Important:
Changing login URL improves security, but does not replace full protection.
Changing login URL improves security, but does not replace full protection.





