# 401 Unauthorized

> This page needs you to log in.

## Quick answer

A 401 means valid login details are required for this address. An authentication service answered, which does not establish whether the application behind it is working. Our check never logs in, so protected pages can appear restricted to it.

When to wait: Waiting does not help; a login is needed.

## If you are visiting the website

1. **Log in again** Sign out and sign back in, then reload the page.
2. **Check the address** Make sure you are on the public page, not an admin or staging address.

## If you run the website

1. **Check protection settings** Make sure only private areas need a password, not the public homepage.
2. **Check login services** If logins fail for everyone, check your identity provider or session storage.

## Worked example: a protected staging address

`https://example.com/staging` answers 401 together with a `WWW-Authenticate` header, and the browser shows a sign-in prompt.

An automated public check never signs in, so such an address will always look restricted to it.

## Authentication needed, not permission refused

A 401 means valid authentication is required, and `WWW-Authenticate` names the scheme expected. A 403 means the request was understood but refused; it does not prove that the server knows who you are.

The challenge shows that something serving this address is answering and asking for credentials. It does not show whether the application behind it is working.

## Verify the scope, then stop

Check whether the public homepage also answers 401. If only the private area does, the setup is working as intended.

Never type credentials into a prompt reached from an unexpected link. If a public page is protected by mistake, only the operator can relax it.

## Likely causes

- The page or whole site is password protected. (common, owner side)
- Your login has expired. (sometimes, visitor side)

## What to avoid

- Do not enter your password on a page you reached through an unexpected link.

## Related messages

- [403 Forbidden](https://checkwebsitenow.com/errors/http-403)
- [Result: The check was restricted](https://checkwebsitenow.com/errors/result-access-restricted)

## Sources

- [MDN: 401 Unauthorized](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/401)
- [RFC 9110 (HTTP Semantics), Section 15.5.2: 401 Unauthorized](https://www.rfc-editor.org/rfc/rfc9110.html#section-15.5.2)

Last updated: 2026-10-21. Check a website now: https://checkwebsitenow.com/?check=example.com
