Questions tagged [htpasswd]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
2 answers
300 views

Is it possible to restrict the access to a website with a login/pwd tuple without having access to the Apache config?

I only have a web hosting solution which doesn't include a server config access, this is a mutualized solution. I would like to try to allow users to access my website only if they have the expected ...
Another Dude's user avatar
4 votes
2 answers
349 views

Password protect specific files on root of website

I have had a website running for a while and it has a small following. What I wish to do now is password protect some specific files that sit in the root directory. So I'd like the user not to see any ...
Mick's user avatar
  • 301
1 vote
1 answer
106 views

.htaccess problem with people with identical usernames

I've recently set up a password protected area on a client's website, but there's an issue where several of the members of the organisation concerned have identical usernames, although, obviously, ...
Ian's user avatar
  • 11
2 votes
0 answers
209 views

Safari prompts for BasicAuth credentials on every request in WordPress admin area, but works fine on the rest of the site

I have a WordPress website which is in development, and is hidden behind a BasicAuth password prompt. My root level .htaccess file: AuthType Basic AuthName "Login Details" AuthUserFile /var/...
Alexander Holsgrove's user avatar
3 votes
0 answers
2k views

How to fix .htaccess error? Keeps asking for authentication

I'm setting up basic http authentication for my subdomain dev Laravel site with .htaccess and .htpasswd. First, I created my .htpasswd user and password by command htpasswd -bc .htpasswd admin ...
francisco cueva's user avatar
1 vote
0 answers
59 views

Password protect a website only if it is the dev site [closed]

I am trying to password protect a website only if it is the dev site using .htaccess and .htpasswd I am using Apache 2.4.29 on Ubuntu 18.04 Here is what I have in the .htaccess file <If "%{...
Randy Johnson's user avatar
1 vote
2 answers
1k views

http password protection causing 'too many redirects'

I have a Wordpress site on a VPS which keeps getting attached on xmlrpc and wp logins. As part of combatting this I password protected the wp-admin directory (via Cpanel 'Directory Privacy') - but ...
iain-g's user avatar
  • 13
1 vote
3 answers
5k views

htaccess , htpasswd and error 401

I have a problem with htpasswd. I get an error in error.log apache2 user admin: authentication failure for "/": Password Mismatch Content of my htaccess file: # Set Access Restrictions ...
Sourceforest's user avatar
1 vote
1 answer
594 views

In NginX what means location ^~

If I'm not wrong, location = / {} means "only the / folder, not the files inside, not the subfolders" location ~ / {} means "the / folder, all the files inside, all the subfolders and their subfiles" ...
Kunepro's user avatar
  • 23
0 votes
2 answers
418 views

How to double protect admin access in PyroCMS

I have read how to protect admin folder with .htaccess and .htpasswd file but in PyroCMS admin login (ex: example.com/admin) just only routing system (no admin folder yet). So, how can I double ...
Doavers's user avatar
4 votes
1 answer
10k views

.htaccess and .htpasswd throwing 500 internal server error

I've created a .htaccess and a .htpasswd file, both using my hosting's tool, uploaded them, and I get an error when I try to view the directory. Why? my .htaccess file: AuthName "Restricted Area" ...
David Abgaryan's user avatar
5 votes
1 answer
2k views

Password protect an alias virtual directory

I have a main domain being hosted through CPanel. I also have a sub-domain that I would like to appear as a path under the main domain instead of as a sub-domain. So I have: http://example.com/ ...
Jason's user avatar
  • 151
2 votes
2 answers
854 views

htaccess and htpasswd trouble

This is the first time that I have ever tried working with .htpasswd and .htaccess files, so please point out my childish works. I have my apache document root set to /www/ on my debian server. ...
hjpotter92's user avatar
2 votes
1 answer
17k views

.htaccess password protection generates 500 internal server error

I have created a .htpasswd file using htaccess tools of which I have uploaded to the root of my web hosting space (/public_html is my web root). I created a .htaccess file which referenced the ....
Steve's user avatar
  • 1,456
1 vote
1 answer
1k views

How secure is using .htpasswd to secure a directory?

I'm basically creating something off of my main domain www.mywebsite.com/intranet. I've created .htpasswd protection for that intranet directory. I can't implement individual user passwords yet and ...
milesmeow's user avatar
  • 689
4 votes
4 answers
494 views

How to restrict access to my site using htaccess

How to disallow access to site except me?
user3070's user avatar