Today, I’m going to share two method of  protecting web directory with password.

Method 1 : Password Protect Web Directory with  JavaScript

Method 1 : using .htaccess method