Questions tagged [.htpasswd]

.htpasswd is a flat-file used to store usernames and password for basic authentication of Apache HTTP Server.

.htpasswd is a flat-file used to store usernames and passwords for basic authentication on Apache HTTP Servers. The name of the file is given in the .htaccess configuration, and can be anything, but ".htpasswd" is the canonical name. The file name starts with a dot, because most Unix-like operating systems consider any file that begins with dot to be hidden.

This file is often maintained with the shell command htpasswd which can add, delete, and update users, and will properly encode the passwords for use (so they are easily checked, but cannot be reversed back to the original password).

The file consists of rows. Each row corresponds to a username and hashed password pair, separated with the colon. For example:

user:password

The hashed password is typically "UNIX crypt" style, encrypted in either MD5 or SHA1 as common alternatives.

Additional users can be added by using the htpasswd shell command or by appending new lines to the file. For example:

user1:password1
user2:password2

Resources available on the Apache HTTP server can be restricted to users listed in the files created by htpasswd.

See also

526 questions
0
votes
1 answer

Remove password from password protected directory on Windows

I have downloaded full directory from windows server... the directory was password protected directory... configured by Plesk Panel to prevent user access asp.net website without password. I have now working with same code files on visual studio,…
0
votes
1 answer

How to access the input of username from htpasswd via JS?

I used .htpasswd for access control on my webpage(HTML/JS). Now I want to get the input of username in htpasswd window. Any suggestion?
northtree
  • 8,569
  • 11
  • 61
  • 80
0
votes
1 answer

Excluding single directory under protected Wordpress site from htpasswd protection

Despite a good deal of searching here I haven't been able to find the solution to this problem. I have an .htaccess file that is protecting a Wordpress site that I am developing. I would like to protect the entire site except for the directory…
Nick
  • 4,304
  • 15
  • 69
  • 108
0
votes
0 answers

.htaccess with .htpasswd don't shows prompt

I'm trying to protect a directory using .htaccess and .htpasswd. I created the file .htpasswd in /home/marcos and looks such that: profesor:weuqwhdiuqh In the directory I want to protect (/var/www/privado) I have a .htaccess file with the…
Lobo
  • 4,001
  • 8
  • 37
  • 67
0
votes
1 answer

HTTP-Authentication with .htpasswd file

PHP offers the possibility to use HTTP-Authentication. However, it is difficult to use .htpasswd-files. There are scripts to check the .htpasswd file within php (for example this one). However, these scripts are quite complex and most of them don't…
speendo
  • 13,045
  • 22
  • 71
  • 107
-1
votes
1 answer

How call a Windows program (.exe file) from Python 3

I know this may seem a common question, yes, there are many questions similar to mine and yes, apparently there are solutions but the problem is that I tried them but they do not work. This is my code: def testOne(): output =…
Massimo Manca
  • 385
  • 1
  • 2
  • 15
-1
votes
1 answer

Htaccess stops working after added new user

I have an htpasswd file with one user, it totally works. But, when I add a user the first user can login but the second user can't. What might be the problem? The htpasswd…
-1
votes
1 answer

authenticate / bypass .htaccess .htpasswd in PHP

I've had a good look around here for articles relating to this and nothing I see seems to work. Let me start by explaining my situation. I have a load of files and folders (directories) inside a .htpasswd/.htaccess protected folder. These are sat on…
Henry Aspden
  • 1,863
  • 3
  • 23
  • 45
-1
votes
1 answer

.htpasswd pass login from PHP

I have password protected a directory using .htaccess and .htpasswd and all is correctly working. I have a PHP file that sits outside of the password protected directory, is there a way to pass the login information using this PHP file so that…
fightstarr20
  • 11,682
  • 40
  • 154
  • 278
-1
votes
1 answer

Python Flask to password protect website with .htaccess similar to PHP

My google search leads me to these articles 01 02 With 01 I don't know how to use it; recieving error ImportError: No module named flask.ext.htpasswd With 02, it seems to be incomplete. So how can we protect website with .htaccess password…
Nam G VU
  • 33,193
  • 69
  • 233
  • 372
-1
votes
2 answers

wordpress .htaccess & .htpasswd issue

I have a strange issue here. My client site is suspended due to spam messages by one.com. After deleting the comments, the technical support guy told me to generate .htaccess and .htpasswd file by using one.com's support page and upload it into…
-1
votes
1 answer

HTPASSWD Automatic

quick question. I setup a timecard and PO system for a family business. The employees enter their username and password to enter the system. Every time the family hired someone though they send me the info. I use htpasswd generator, and open the…
ldiggins
  • 95
  • 7
-1
votes
2 answers

Browse .htpasswd protected folder using PHP

The scenario is I want to implement single sign on process in my web application, currently I have protected few folders using .htpasswd Now when a user logs in to the system I want that they should get access to those protected folders as well…
Sandhurst
  • 1,180
  • 5
  • 26
  • 40
-1
votes
2 answers

can get it work htpasswd

i can get the .htpasswd to work with .htaccess I have the following lines in htacess order allow,deny deny from all AuthUserFile /var/www/example/.htpasswd AuthName "Restricted Area" AuthType Basic Require valid-user …
lgt
  • 1,024
  • 3
  • 18
  • 33
-2
votes
1 answer

Adding .htpasswd to my web site

Hi.I'm new at web, and I want to create a site. I've ordered a domain name and hosting, so now I have access to storage on hosting. What have I to do to protect any folder using htpasswd? All that I have in http folder is index.html and folder…
Stdugnd4ikbd
  • 242
  • 3
  • 9
1 2 3
35
36