htpasswd

Create a password file To change the password for an existing user You can use -b option to specify the password as a command line option, this is useful for adding or updating users non-interactively. To limit access, add the following to the Apache virtual host entry. Apache