Step 1: Login into your hosting cpanel. Under the Security section ,click on Password Protect Directories.Step 2: Select the Document Root for your domain, then click