Troubleshooting

Blocked Due to Access Forbidden (403) or Unauthorized (401): 2026 Fix

What 403 Forbidden and 401 Unauthorized statuses mean for Google indexing in 2026, why crawlers get blocked by firewalls and logins, and how to fix it safely.

11 min read

Blocked due to access forbidden 403: a crawler denied access to a page

Quick answer

'Blocked due to access forbidden (403)' and 'Blocked due to unauthorized request (401)' mean Google was refused access when crawling, so the page cannot be indexed. 401 usually comes from logins or password protection; 403 usually comes from permissions, firewalls or bot protection. If the page should be public, allow verified Googlebot; if it should be private, the block is correct.

Key takeaways

  • 401 and 403 mean Google was refused access, so the page cannot be indexed.
  • Private pages behind logins should return 401 or 403; that is correct.
  • Public pages returning 403 to Googlebot usually point to firewall or bot rules.
  • Allow verified Googlebot rather than anything claiming to be Googlebot.
  • Staging password protection copied to production is a common cause.

What do the 401 and 403 statuses mean?

Both are HTTP status codes that refuse access. 401 Unauthorized means the request needs authentication, such as a login or password, and none was provided. 403 Forbidden means the server understood the request but refuses to fulfil it, whether or not credentials were provided. When Googlebot receives either, it cannot read the page, so the page cannot be indexed. Search Console lists such URLs as 'Blocked due to unauthorized request (401)' or 'Blocked due to access forbidden (403)'.

Googlebot does not log in to sites. Any content that requires authentication is invisible to it. That is by design for private areas, and a problem when public pages are refused by mistake.

Comparison of correct and accidental 401 and 403 blocks for Google's crawler. View full size
Blocking private areas is right. Blocking public pages from Googlebot is the problem to fix.

Is this status a problem?

Look at the example URLs. If they are login pages, account areas, admin paths or members-only content, the block is correct and nothing needs to change. Ideally Google should not be finding those URLs at all, so check that public pages do not link to them unnecessarily, but the status itself is fine.

If the examples include public pages, such as articles, products or your homepage, something is refusing Googlebot. That is urgent: those pages cannot be crawled, cannot be refreshed and will eventually drop from the index if they were there before.

What causes accidental 403s for Googlebot?

Common causes of Googlebot being refused
CauseTypical statusWhere to look
Bot protection or web application firewall403Security dashboard rules and logs
Rate limiting403 or 429CDN or server rate-limit settings
Country or IP blocking403Geo-blocking and IP deny lists
Hotlink or user-agent filters403Server configuration rules
File permission errors on the server403Server error logs
Password protection on the site401Hosting or CMS access settings
Login-required plugin or membership setting401 or 403CMS plugin settings

How do you confirm Googlebot is being blocked?

Use URL Inspection's live test in Search Console on an affected URL. If the live test fails with 401 or 403, Google is being refused now. If your browser loads the page fine, the block is specific to Googlebot, which points to bot protection, firewall rules, rate limiting or geo-blocking rather than the page itself.

Then check logs. Your CDN, firewall and server logs record blocked requests with the reason. Filter for Googlebot's user agent and look for the rule that triggered. Remember that not every request claiming to be Googlebot is genuine; Google documents how to verify Googlebot by reverse DNS lookup, and publishes its crawler IP ranges.

How do you fix accidental blocks safely?

The goal is to let genuine search engine crawlers in without opening the door to bad bots that impersonate them.

  1. In your bot protection or firewall, enable the setting that allows verified search engine crawlers; most major providers offer one.
  2. If you maintain your own rules, allow Googlebot by verified IP ranges or reverse DNS, not by user agent alone.
  3. Exclude crawlers from rate limits that are tuned for human browsing patterns, or raise limits for verified bots.
  4. Check geo-blocking: Googlebot mostly crawls from the US, so blocking US traffic blocks Google.
  5. Remove site-wide password protection from production once the site is live.
  6. Fix file and folder permissions if the server itself returns 403 for public files.

After the fix, run the live test in URL Inspection again to confirm Google can fetch the page, request indexing for key pages and use Validate fix in the Page indexing report.

Four steps to fix accidental 401 or 403 blocks: confirm, locate, allow verified crawlers and recheck. View full size
Allowing verified crawlers fixes the block without weakening protection against bad bots.

What about paywalled and members-only content?

If you want subscription content to appear in search while still requiring payment to read, returning 401 or 403 to Google keeps it out entirely. Publishers who want paywalled articles indexed typically let Googlebot see the full content and use structured data to mark the paywalled sections, so Google understands the content is subscription-based. This is a deliberate design choice with its own guidelines, not something to stumble into.

If members-only content should stay out of search, the 401 or 403 is correct, and you might also keep those URLs out of your sitemap and avoid linking to them from public pages, so Google does not keep trying to crawl them.

Why do 401 errors appear after launching a new site?

During development, many sites are protected by a password at the hosting or server level. If that protection is not removed at launch, or if a staging configuration is deployed to production, Googlebot receives 401 on every page. The site works for the team, who are logged in or whitelisted, and fails for everyone else. Test the live site from a private browser window and from an external checker after every launch.

A worked example: a security update blocks Google

An online publisher turns on a stricter bot protection setting after a scraping incident. Within days, Search Console shows hundreds of articles under 'Blocked due to access forbidden (403)', and the Crawl stats report shows a sharp rise in 403 responses. URL Inspection's live test fails, while the articles load normally in a browser. The protection is challenging all automated traffic, including Googlebot.

The team enables the provider's 'allow verified bots' option, which lets verified search engine crawlers through while still challenging scrapers. The live test passes immediately. They request indexing for top articles and validate the fix. Most affected articles are recrawled within a week, and no rankings are lost because the block lasted only a few days. They add 'check Search Console Crawl stats' to their security change checklist.

What are the myths about 401 and 403?

  • Myth: Googlebot can log in to see protected content. It does not log in.
  • Myth: allowing the Googlebot user agent is enough. Fake bots use it too; allow verified crawlers.
  • Myth: a 403 page with content still gets indexed. The status tells Google access was refused.
  • Myth: blocking a country only affects users there. Crawlers from that region are blocked too.

Why do these URLs appear if they are private?

Google finds private URLs the same way it finds public ones: through links. A 'My account' link in your header, a login link in the footer or links to members-only articles from public pages all lead Googlebot to URLs that will refuse it. That is harmless, but it adds noise to the report and wastes a little crawling. If the list is long, consider whether public pages need to link to private URLs in a crawlable way, and keep private URLs out of your sitemap.

Some sites use robots.txt to stop crawling of account areas entirely. That reduces the noise, though it is not a security measure; the login is what protects the content. Google's documentation is clear that robots.txt is not a way to hide private information.

You may also read

How do CDNs and hosting platforms cause 403s?

Many CDNs and hosting platforms include security features that are on by default or easy to turn on: managed challenge pages, 'under attack' modes, bot scoring, country blocking and hotlink protection. Each can return 403, or a challenge page that crawlers cannot pass, to Googlebot. Some platforms also block requests that do not send typical browser headers. Review these features whenever you enable them, and check how they classify known search crawlers.

Managed platforms sometimes apply stricter rules during traffic spikes or attacks without telling you. If 403s appear suddenly with no change on your side, check your provider's status pages and security event logs for automatic mitigations.

Can a 403 affect only some of Google's crawlers?

Yes. Google uses several crawlers: Googlebot for smartphone and desktop, Googlebot-Image, Googlebot-Video, and others for specific products. A rule that blocks one user agent or one IP range may affect some crawlers and not others. For example, a hotlink rule may block Googlebot-Image from fetching images while pages remain crawlable, which keeps your images out of Google Images. Check the Crawl stats report by crawler type, and verify rules against Google's list of crawlers.

Should you return 403 or 404 for removed content?

Use 404 or 410 for content that no longer exists. A 403 says the content exists but access is refused, which is the wrong message for deleted pages, and Google may keep checking the URL. Some servers return 403 for directories without an index file; if such URLs are linked, either add proper pages or return 404 for them.

What about rate limiting with 429?

429 Too Many Requests tells a client to slow down. Google treats 429 similarly to 503: it reduces crawl rate temporarily. That makes 429 a reasonable signal if Googlebot is genuinely overloading your server, but if your rate limits are tuned for human visitors and trigger on normal crawling, Google will crawl less than it should. Exempt verified crawlers from strict rate limits, or set limits that accommodate them, and fix the underlying capacity issue if crawling truly strains the server.

How do you test what Googlebot receives?

URL Inspection's live test is the authoritative check, because it fetches the page as Googlebot from Google's own infrastructure. Run it after any security change on a handful of important URLs. Outside tools that spoof Googlebot's user agent are less reliable, because many protection systems check the IP address rather than the user agent and will treat a spoofed request differently from a real one.

For ongoing assurance, monitor the Crawl stats report's breakdown of responses. A healthy site shows almost all 200 responses with small shares of redirects and 404s. A new block of 401 or 403 responses stands out immediately on the chart, usually within a day or two of the change that caused it.

What about staging and development environments?

Staging sites should be protected, and 401 is the right response for them: it keeps both people and crawlers out. The risk is in the other direction, when staging protection is carried into production, or when a production subdomain is accidentally placed behind the same protection. Keep staging on separate hostnames, protect them with authentication rather than noindex alone, and include 'is the live site publicly accessible?' in every launch checklist.

A simple rule of thumb: if a hostname is meant for the public, it should be reachable without credentials from anywhere Google crawls, and if it is not meant for the public, it should require a login. Anything in between, such as public pages behind bot challenges, is where indexing problems start.

How do you prevent crawler blocks?

Include crawlers in your security change process. Before enabling new bot rules, rate limits or geo-blocking, check how they treat verified search crawlers. After any change, run URL Inspection's live test on a few key pages and watch the Crawl stats report for a rise in 401 or 403 responses over the following days. Monitor key URLs from outside your network for unexpected status codes.

Security and crawlability are not in conflict when rules are precise. Our guide on server errors (5xx) covers related issues where protection systems return errors instead of 403s.

Pages returning 401 or 403 to crawlers cannot be indexed through any route until access is fixed. Blink Index's free link checker shows the status code it receives for each URL, which is a quick outside check while you work on firewall and bot settings.

Blink Index workflow for 401 and 403 blocks, with the check step highlighted for testing access. View full size
Checking status codes from outside your network shows quickly whether public pages are being refused.
  1. Check public URLs with the free link checker for 401 or 403.
  2. Fix firewall, bot protection or password settings so verified crawlers are allowed.
  3. Request indexing for key pages and recheck with the free index checker.

See the FAQ and the pricing page for more on what Blink Index does.

Summary: refuse bad bots, admit verified crawlers

401 and 403 statuses refuse access, so Google cannot index those pages. That is correct for private areas and a problem for public pages. Most accidental blocks come from bot protection, firewalls, rate limits, geo-blocking or leftover password protection. Allow verified search crawlers, confirm with URL Inspection's live test and validate the fix. For a broader checklist, see why Google is not indexing your site.

Frequently asked questions

What does 'Blocked due to access forbidden (403)' mean?

Google was refused access with a 403 Forbidden status when crawling the URL, so it cannot index the page. On public pages this usually comes from bot protection, firewall rules, rate limiting, geo-blocking or server permission errors.

What does 'Blocked due to unauthorized request (401)' mean?

The page requires authentication, such as a login or password, and Googlebot does not log in. It is correct for private areas. On public pages, it usually means password protection was left on or a login plugin applies too broadly.

How do I stop my firewall blocking Googlebot?

Enable your provider's setting for verified search engine crawlers, or allow Google's published IP ranges and verify by reverse DNS. Do not rely on the user agent alone, because bad bots impersonate Googlebot.

Can Google index content behind a login?

No, Googlebot does not log in. Content that requires authentication is invisible to it. Publishers who want paywalled content indexed let Google see it and mark paywalled sections with structured data.

How quickly do pages recover after fixing a 403 block?

Once Google can fetch the pages again, important ones are often recrawled within days, especially with a Request indexing. Use Validate fix in Search Console so Google rechecks all affected URLs.

Keep reading

Sources and further reading

Facts about how Google crawls and indexes pages come from Google's own documentation: