[How To] Hide wp-admin and wp-login.php from source code

Hiding the wp-admin and wp-login.php paths from source code it’s important especially when you use obscurity through security solution like Hide My WP Ghost.

The fastest way to change it is to use the mapping feature from Hide My WP Ghost. This way you can simply change the /wp-admin to a random name which will redirect the user to a page or to a 404 page.

For example you can add in Hide My WP > Mapping > Text Mapping:

/wp-admin => /404
/wp-login.php => /404 
/wp-login/ => /404 

Another solution is to deactivate the installed plugins and to check which plugin is adding the admin and login paths in source code. You can contact the plugin author and tell them to avoid making visible the sensitive paths.

2 Comments

Leave a comment

Your email address will not be published. Required fields are marked *