Sucure Wordpress Admin


I just visited trying accesses login page, then a popup will show and asking to enter details to log in. This kind of

If i click on cancel button its shows me Unauthorized and redirect to another page like this

So @GulshanKumar here is my question to Secure Wordpress Admin LIke WPBeginner?



  • Add HTTP Auth for your WordPress Login page.


Can you tell me how to do that on wordpress.


In order to password protect your WordPress wp-login.php path, you need to setup HTTP Auth using this plugin.


But i am not comfortable on plugin methods, most plugin decrees website performance.

So tell me how to that on server by changing or add some code.


Please search on Google ‘HTTP Auth wp-login.php NGINX’.