Questions tagged [htpasswd]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
42 votes
4 answers
106k views

How can I install the htpasswd utility in Red Hat / Scientific Linux?

For apache, there is the htpasswd utility, which can be used to generate encrypted passwords for .htaccess access restriction etc. In Ubuntu I can install it via the apache2-utils package, but in ...
Samuel Lampa's user avatar
7 votes
2 answers
16k views

IIS Basic Authorization ala .htaccess/.htpasswd in apache

How do I implement the protection of the pages (asp.net mvc app), so when I hit the home page or any other pages within the application I get a login dialog popup in the browser I'm looking for ...
Dmitry's user avatar
  • 201
1 vote
1 answer
550 views

Allow files to be listed when viewing a directory but protected (via HTTP authentication) when accessed directly

I created a password protected directory using .htaccess and .htpasswd, but the files don't show up when I go to the directory URL. I have this in my .htaccess: #Protect multiple files <FilesMatch &...
Patoshi パトシ's user avatar
1 vote
1 answer
1k views

Can htpasswd be used to restrict access to a URL rather than a specific folder?

I would like to restrict access to certain URLs with htpasswd files, rather than folders, is this possible? For example, I wish to restrict the URL: www.example.com/pages/id/227/Restricted_Page But ...
user avatar
1 vote
1 answer
2k views

Nginx Password Protect Directory Downloads Source Code

I'm trying to password protect a WordPress login page on my Nginx server. When I navigate to http://www.example.com/wp-login.php, this brings up the "Authentication Required" prompt (not the WordPress ...
Pamela's user avatar
  • 187
0 votes
2 answers
2k views

Nginx Server Block Port 8081 Path to Root Folder [closed]

I'm trying to password protect all of port 8081 on my Nginx server. The only thing this port is used for is PhpMyAdmin. When I navigate to https://www.example.com:8081, I successfully get the default ...
Pamela's user avatar
  • 187