Enabling this plugin allows you to set up Basic authentication on your site using your WordPress's user name and password.
Basic Auth for Wordpress.
Simply by enabling the plugin can set up a basic auth to dashboard and login page.