Note: There is a two way to create protection 1. cPanel (GUI method)  —or— 2. .htaccess (Coding method) you may follow whichever you want.


GUI Method: Folder Protection with cPanel

Coding Method:  Folder Protection with .htaccess



GUI Method: How do I protect a directory in my control panel (cPanel)?

Step 1: You need to create a user Name & Password for your panel directory i.e. “iwp” — Please refer Video Tutorial:

 


Also available Screenshot Tutorial:




Step 2: Once you have created the Username and Password, then enter credentials on IWP Panel Security section. i.e: login to your — IWP Admin panel, Go to → Settings → Security tab → “HTTP authentication / Folder protection section” and fill your username & password, and make sure to click [ Save Changes ] button.







Coding Method: How do I protect a directory with .htaccess?


Step 1: You need to create a User name & Password for your panel directory i.e. “iwp” — Please refer step by step process Tutorial:




Step 2: Once you have created the Username and Password, then enter credentials on IWP Panel Security section. i.e: login to your — IWP Admin panel, Go to → Settings → Security tab → “HTTP authentication / Folder protection section” and fill your username & password, and make sure to click [ Save Changes ] button.