Questions tagged [401]
401 Unauthorized - Very similar to 403 forbidden but is used when authentication is required and has failed or not been provided.
9
questions
2
votes
0
answers
57
views
After implementing HTTPS, "require valid-user" in subdirectory no longer asks for password, just gives 401 Not Authorized
I'm not very knowledgeable about server scripting, however I've only just installed SSL certificate for the domain.
The main website (hosted by GoDaddy) is now working fine on SSL/TLS and I've ...
2
votes
1
answer
402
views
Which HTTP response status code is most appropriate for a restricted URL?
I have a page on my website that's targeted at logged-in users only. Logged-out visitors shouldn't see the content.
Imagine the page URL is example.com/upload/.
In cases when users aren't ...
2
votes
1
answer
647
views
Does 401 pages effect SEO?
We have a website where we have a round 30 pages that are only visible for authorized users. in Google WMT we see errors appearing about this that Google bot can't read this.
Do we have to add them ...
3
votes
1
answer
437
views
Website Prompting Username and Password for Authentication on Debian Apache WebServer
I am attempting to host my own website with an Apache web server on Debian, but have reached this problem.
When I try to go to my site at example.com it immediately asks for me to authenticate with a ...
2
votes
1
answer
1k
views
How to tell Apache to reply with 403 instead of 401?
We have some rules for a subtree of Locations, which involve Require-ing ldap-group and exprs.
The user is duly challenged to supply login-credentials, which are verified.
However, even when the ...
3
votes
1
answer
10k
views
Is HTTP code 401 or 403 appropriate for when a logged in user is not allowed to view the data?
I am looking for a good way to return an error when an unauthenticated/unauthorised user is trying to get a restricted access content from my site. Currently I ask the user to login, check the ...
2
votes
1
answer
525
views
Force HTTPS using 301 Redirect on IIS7 gets 401.1 Error
I've got a site that is using an Execute URL in the 403.4 error page slot that calls a page named forcessl.aspx. Here's the contents of the file:
strWork = Replace(strQUERY_STRING, "http", "...
2
votes
1
answer
789
views
Should I use a 404 or a 403 error for secure content
I have a set of content in my web app that should only be visible if you are logged in. They have not public equivalent, should never be crawled, or otherwise known outside of logged in users of ...
1
vote
0
answers
366
views
Different behaviour with windows authentication on IIS7 websites
I need to run a website with just windows authentication.
Given the following situation:
The location of the default website is: c:\inetpub\wwwroot
The location of my code is: c:\Sites\WebApp
My ...