2

I want this browser prompt authentication for my cpanel server. I have uploaded my web application to the server now I want to implement browser pop up authentication like in picture below. I know there are many examples but I coudn't crack initial points. I have Html javascript web app on server. I want the prompt user on url hit.

enter image description here

Panda
  • 6,955
  • 6
  • 40
  • 55
AndroConsis
  • 51
  • 1
  • 6

1 Answers1

4

You can use 'Password Protect Directories' feature of cPanel to accomplish this. Just click on 'Password Protect Directories' option from cPanel and select appropriate directory you want to secure and provide the required details like user name and password

Mukesh Jagani
  • 213
  • 2
  • 7
  • I have shared hosted cPanel. I couldn't find Password Preotect Directories in my Dashboard – AndroConsis Apr 25 '16 at 06:12
  • It could be disabled by hosting provider, you can ask them to enable it. Even, you can ask them to take care of this task for you. If that is not an option for you, you will have to do it manually using .htaccess and .htpassws files. Following URL will help you: http://www.htaccesstools.com/articles/password-protection/ – Mukesh Jagani Apr 25 '16 at 16:29
  • @AndroConsis I could setup a password protected directory under the menu called `Directory Privacy`. – Bruno Bieri Feb 27 '20 at 07:11