Security and SSL

Protect wp-admin and wp-login.php with the WPS Hide Login plugin

Reviewed on 3 min read WordPress login security

Every WordPress website has its administrator login at the same address: tudominio.com/wp-login.php (or tudominio.com/wp-admin, which leads to the same place). That is why bots keep trying passwords there non-stop.

The free WPS Hide Login plugin is the simplest way to change that address to another one that only you know. It does not modify any WordPress file, so updates do not undo it. It is used by more than two million websites and is still being updated.

Install the plugin

In the WordPress dashboard go to Plugins > Add New Plugin, search for WPS Hide Login, click Install Now and then Activate.

Searching for WPS Hide Login in Plugins > Add New

Choose the new login address

Go to Settings > General and scroll down to the bottom of the page. In the WPS Hide Login section, type the new address in Login url. In the example we use oculto, but it is better to use something hard to guess, such as acceso-k7m2q.

WPS Hide Login's Login url field in Settings > General

Click Save Changes and write down the full address (for example https://tudominio.com/acceso-k7m2q) in your password manager or your browser bookmarks.

From then on, wp-login.php and wp-admin will return an error page to anyone who has not logged in, and you will only be able to log in through your new address. Below the field there is another one, Redirection url, for choosing which page is shown instead of the login (by default, the 404 error page).

Before logging out, open a private window and check that the new address shows the login form.

If you use a caching plugin, exclude the new address from the cache so that a copy of the form is not stored.

If you forget the address

You have two ways to recover it:

  • Look it up in the database. Open the WordPress database in phpMyAdmin, go to the wp_options table (the wp_ prefix may be different) and look for the row whose option_name is whl_page. Its value is your login address.
  • Deactivate the plugin. From the cPanel File Manager or by FTP, go to wp-content/plugins and rename the wps-hide-login folder to wps-hide-login-off. WordPress deactivates the plugin and you can log in through wp-login.php as usual. Then give the folder back its original name, activate the plugin again in Plugins and choose another address.

Complete the protection

Changing the address gets rid of most bots, but it is no use if someone already knows your password. Use a long, unique password, enable two-step verification for administrators and keep WordPress and its plugins up to date. You will find more measures in the security tips for WordPress.

You may also find useful

Something wrong or out of date? Tell us and we will review it.