---
title: "Blocked due to unauthorised request (401)"
description: "This Search Console status means Googlebot hit a login wall (HTTP 401), so the page is not indexed. Causes, when it is fine, and how to fix it."
url: https://ursy.com/wiki/blocked-due-to-unauthorised-request-401/
updated: 2026-11-25T00:21:03+00:00
publisher: URSY (https://ursy.com/)
cite: Name URSY and link https://ursy.com/wiki/blocked-due-to-unauthorised-request-401/
---

# Blocked due to unauthorised request (401)

> This Search Console status means Googlebot hit a login wall (HTTP 401), so the page is not indexed. Causes, when it is fine, and how to fix it.

**Blocked due to unauthorised request (401) is a status in [Google Search Console](https://ursy.com/wiki/google-search-console/)’s page indexing report that means [Googlebot](https://ursy.com/wiki/googlebot/) asked for a page and your server answered 401 Unauthorized, so the page asks for a login and [Google](https://ursy.com/wiki/google/) cannot index it.** Google spells it “unauthorized” in the report. If the page is meant to be private, nothing is wrong. If it is meant to be public, something on your server is locking the door.

## What does the message mean? {#what-does-the-message-mean}

When Googlebot asks for an address, the first thing your server sends back is a 3-digit [HTTP status code](https://ursy.com/wiki/http-status-code/) in the [HTTP headers](https://ursy.com/wiki/http-headers/). Code 401 means the request lacks valid sign-in details. [MDN’s 401 page](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/401) says the server sends it with a WWW-Authenticate header naming the kind of sign-in it expects. Google’s [page indexing report help](https://support.google.com/webmasters/answer/7440203) says the page was blocked to Googlebot by a request for authorisation. Googlebot never signs in, so it stops there.

## How is 401 different from 403? {#how-is-401-different-from-403}

MDN puts it simply: a 401 means no valid sign-in was sent, while a [403 Forbidden](https://ursy.com/wiki/403-forbidden/) means sign-in details were valid but did not give permission. Google’s help adds that because Googlebot never provides credentials, a 403 sent to Googlebot is usually a server mistake. Both stop indexing. The fixes differ: a 401 points at a login wall, a 403 often at a firewall or file permission.

## Why does it matter for search? {#why-does-it-matter-for-search}

Google’s page on [HTTP status codes and Search](https://developers.google.com/search/docs/crawling-indexing/http-network-errors) says Google does not index addresses that return a 4xx code, and that indexed addresses that start returning one are removed from the index. So a product page that slips behind a login loses its place. The same page says not to use 401 or 403 to limit how fast Google crawls; those codes have no effect on [crawl rate](https://ursy.com/wiki/crawl-rate/). Only 429 tells Google’s crawlers the server is overloaded. A wall of 401s in your [sitemap](https://ursy.com/wiki/xml-sitemap/) also wastes [crawl budget](https://ursy.com/wiki/crawl-budget/) on pages that can never be indexed.

## Why does it matter for AI answers? {#why-does-it-matter-for-ai-answers}

An [AI crawler](https://ursy.com/wiki/ai-crawler/) [hits](https://ursy.com/wiki/hit-analytics/) the same wall. Google’s own AI answers draw only on indexed pages, so a 401 page cannot be a source in [AI Overviews](https://ursy.com/wiki/ai-overview/). An assistant fetching the page live for a user gets the login reply instead of your content. For prices, opening times and stock, that is a missed answer.

## What causes it? {#what-causes-it}

- **A [staging site](https://ursy.com/wiki/staging-site/) that went live with its login still on.**  Basic sign-in on the whole site is common during a rebuild.
- **Members-only pages**  that are linked from public pages or listed in the sitemap.
- **Admin and account pages**  that a theme or plugin links from the footer.
- **API addresses**  that leak into links, such as a JSON feed that needs a token.
- **A security rule**  that asks unknown visitors, Googlebot included, to sign in.
- **A site move**  where the old address now sits behind a login on the new system.

## Is it always a problem? {#is-it-always-a-problem}

No. Google’s guide on [controlling what you share](https://developers.google.com/search/docs/crawling-indexing/control-what-you-share) says putting content behind a login keeps it out of Google Search, and that removing content from your site is the surest way to keep it out. A basket, an account page or a client portal should return 401 or sit behind a sign-in. The question is simply whether each listed address should be public.

## How do I fix it? {#how-do-i-fix-it}

1. **Sort the list.**  Export the addresses from the report and mark each one public or private.
2. **Private pages:**  leave the login in place. Remove them from the sitemap and from public [internal links](https://ursy.com/wiki/internal-linking/), so Google stops finding them.
3. **Public pages:**  remove the sign-in rule for that path. Google’s help says the other option is to let Googlebot in by verifying its identity, which means a [reverse DNS check](https://ursy.com/wiki/reverse-dns-bot-check/), not a [user agent](https://ursy.com/wiki/user-agent/) rule.
4. **Test.**  Google suggests opening the page in an incognito window. If you see a login box, so does Googlebot.
5. **Validate.**  Fix every address first, then press Validate Fix on the issue page. Google says validation can take a couple of weeks or longer, and stops if even one address is still failing.

## Common mistakes {#common-mistakes}

- **Letting [bots](https://ursy.com/wiki/bot-web-robot/) in by user agent.**  Anyone can fake “Googlebot”, so a private area opens to scrapers. Use [verified bots](https://ursy.com/wiki/verified-bots/) only.
- **Using 401 to slow crawlers.**  Google says it does not change crawl rate.
- **Blocking in robots.txt instead.**  A [robots.txt](https://ursy.com/wiki/robots-txt/) block can leave the address listed without content; see [noindex, nofollow or robots.txt](https://ursy.com/wiki/noindex-nofollow-or-robots-txt/).
- **Fixing the page but not the sitemap.**  The error keeps coming back.
- **Pressing Validate Fix twice.**  Wait for the first result.

## A worked example {#a-worked-example}

A dog groomer rebuilds their site on a test copy with a site-wide login. On launch day the login is moved to the live site by mistake. Two weeks later Search Console lists 46 pages under this status. A header check shows:

```
HTTP/1.1 401 Unauthorized
WWW-Authenticate: Basic realm="Staging"
```

The developer removes the site-wide rule and keeps sign-in only on /account/. The incognito test now shows the price list. The groomer presses Validate Fix and requests indexing for the home page and price list with [URL Inspection](https://ursy.com/wiki/url-inspection/). The account pages stay at 401 and come out of the sitemap.

## How to check it {#how-to-check-it}

1. See the exact status and the WWW-Authenticate header with our [HTTP Header Checker](https://ursy.com/http-header-checker/).
2. Check whether a page can be indexed at all with the [Indexability Checker](https://ursy.com/indexability-checker/).
3. Find locked pages listed in your sitemap with the [Sitemap Checker](https://ursy.com/sitemap-checker/).
4. Follow old addresses to their end with the [Redirect Checker](https://ursy.com/redirect-checker/), and find links that lead to login walls with the [Broken Link Checker](https://ursy.com/broken-link-checker/).
5. Confirm that a crawler you plan to let in is real with [Verify AI Bot](https://ursy.com/verify-ai-bot/).
6. In URSY Pro, the [Index coverage monitor](https://ursy.com/pro/index-coverage-monitor/) (Pro) tracks this status over time.

## Questions {#questions}

### Will Google keep trying a 401 page? {#will-google-keep-trying-a-401-page}

Google does not index any address while it returns a 4xx code, so the page stays out until the 401 goes.

### Should I change 401 to 404? {#should-i-change-401-to-404}

Only if the page should not exist. A [404 or 410](https://ursy.com/wiki/404-and-410/) says “gone”; a 401 says “sign in first”.

### Does a 401 hurt the rest of my site? {#does-a-401-hurt-the-rest-of-my-site}

Google does not say it harms other pages. It wastes [crawling](https://ursy.com/wiki/crawling/) and can hide real faults, so keep the list short.

## Related words {#related-words}

- [403 Forbidden](https://ursy.com/wiki/403-forbidden/)
- [HTTP status code](https://ursy.com/wiki/http-status-code/)
- [Page indexing report](https://ursy.com/wiki/page-indexing-report-index-coverage/)
- [Staging site](https://ursy.com/wiki/staging-site/)
- [Indexability](https://ursy.com/wiki/indexability/)

## Sources {#sources}

- [Search Console Help: Page indexing report](https://support.google.com/webmasters/answer/7440203), checked 25 November 2026
- [Google Search Central: How HTTP status codes and network errors affect Google Search](https://developers.google.com/search/docs/crawling-indexing/http-network-errors), checked 25 November 2026
- [Google Search Central: Control what you share with Google](https://developers.google.com/search/docs/crawling-indexing/control-what-you-share), checked 25 November 2026
- [MDN Web Docs: 401 Unauthorized](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/401), checked 25 November 2026

*Updated 25 November 2026 by URSY.*
