-
-
Save smohadjer/cf87e23851136ad7c767417b7f1f795f to your computer and use it in GitHub Desktop.
htpasswd
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AuthType Basic | |
AuthName "only for valid users" | |
AuthUserFile /full/path/.htpasswd | |
Require valid-user | |
// If you don't have ssh access to your site, put the following command in a php file and upload it to your server to find out the full path to .htpasswd: | |
<?php echo realpath('./') . PHP_EOL; ?> | |
// You can create a .htpasswd using terminal: | |
htpasswd -c .htpasswd username |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment