---
title: "403 Forbidden"
description: "A 403 Forbidden means the server understood the request but refuses it. Often a firewall or bot rule; Google drops public pages that return it."
url: https://ursy.com/wiki/403-forbidden/
updated: 2026-11-24T23:00:34+00:00
publisher: URSY (https://ursy.com/)
cite: Name URSY and link https://ursy.com/wiki/403-forbidden/
---

# 403 Forbidden

> A 403 Forbidden means the server understood the request but refuses it. Often a firewall or bot rule; Google drops public pages that return it.

**403 Forbidden is the answer a web server gives when it understood a request but will not serve it, because the visitor, [bot](https://ursy.com/wiki/bot-web-robot/) or account is not allowed to see that page or do that action.** Logging in again does not help. On small business sites it is most often caused by a firewall rule, a bot block or wrong file permissions.

## What is a 403 Forbidden? {#what-is-a-403-forbidden}

It is one of the 4xx client error codes in the [HTTP status code](https://ursy.com/wiki/http-status-code/) list. [RFC 9110](https://www.rfc-editor.org/rfc/rfc9110.html#name-403-forbidden), the [HTTP](https://ursy.com/wiki/http/) standard, says the server “understood the request but refuses to fulfill it”. [MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/403) explains the line between 403 and 401: with 401 the server wants you to sign in; with 403, authenticating or re-authenticating “makes no difference”. The refusal comes from the rules, such as a missing role.

MDN also notes a useful trick. A site owner may send a 404 instead of a 403 when they do not want to admit that a private page exists at all.

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

- **A firewall or bot rule.**  A [web application firewall](https://ursy.com/wiki/web-application-firewall/), a security plugin or a [CDN](https://ursy.com/wiki/cdn/) setting blocks a country, an [IP address](https://ursy.com/wiki/ip-address/), a [network block](https://ursy.com/wiki/network-block/) or a [user agent](https://ursy.com/wiki/user-agent/).
- **[AI crawler](https://ursy.com/wiki/ai-crawler/) blocking.**  Many sites now send 403 to AI bots on purpose. Some send it by accident, because a “block bad bots” switch also catches search or AI fetchers they wanted. See [block AI crawlers](https://ursy.com/wiki/block-ai-crawlers/).
- **File and folder permissions.**  A folder with no index file and directory listing turned off, or a file the web server user cannot read.
- **Server rules.**  A line in an [.htaccess file](https://ursy.com/wiki/htaccess-file/) that denies a path, or a hotlink rule that refuses image requests from other sites.
- **Logged-in areas.**  A customer account page, an admin page or a [staging site](https://ursy.com/wiki/staging-site/) that only some people may open. Here a 403 is correct.

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

To [Google](https://ursy.com/wiki/google/) a 403 is just another 4xx. Its guide to [how status codes affect its crawlers](https://developers.google.com/search/docs/crawling-indexing/http-network-errors) says content behind a 4xx is not used, and that an indexed address which starts returning one is removed from the index, with [crawling](https://ursy.com/wiki/crawling/) of it slowing down over time. A public page that sends 403 to [Googlebot](https://ursy.com/wiki/googlebot/) will fall out of search.

The same page gives a clear warning: do not use 401 or 403 to limit the [crawl rate](https://ursy.com/wiki/crawl-rate/). They have no effect on how fast Google crawls. If you need Googlebot to slow down for a short time, Google’s page on [reducing the crawl rate](https://developers.google.com/search/docs/crawling-indexing/reduce-crawl-rate) says to return 500, 503 or 429 instead, and only for a day or two.

A 403 on your [robots.txt](https://ursy.com/wiki/robots-txt/) file is a special case. Google’s [robots.txt spec](https://developers.google.com/search/docs/crawling-indexing/robots/robots_txt) says a 4xx (other than 429) on that file is read as if no robots.txt existed. So a 403 there does not block Google. It removes all your crawl rules.

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

A 403 is the bluntest way to keep an AI company out. If [GPTBot](https://ursy.com/wiki/gptbot/), [ClaudeBot](https://ursy.com/wiki/claudebot/) or [PerplexityBot](https://ursy.com/wiki/perplexitybot/) get 403, they cannot read the page, so they cannot learn from it or quote it. That is fine if it is your choice. The risk is the accidental block: a rule meant for scrapers also refuses the [ChatGPT-User](https://ursy.com/wiki/chatgpt-user/) fetch made when a person asks about your shop. You lose the answer and never see why.

Fake bots make it harder. Scrapers often borrow a real bot’s name. Blocking by name alone can [hit](https://ursy.com/wiki/hit-analytics/) the real one; allowing by name alone lets fakes in. Check the IP against the published lists, as described in [verified bots](https://ursy.com/wiki/verified-bots/) and [reverse DNS bot check](https://ursy.com/wiki/reverse-dns-bot-check/).

## How does it work? {#how-does-it-work}

The request reaches a layer that checks rules: the CDN at the edge, a firewall, the web server, then the app. The first layer that says no sends 403 and the page is never built. If the edge refused it, your [origin server](https://ursy.com/wiki/origin-server/) logs will be empty. Some edge services show a challenge page first, such as a [managed challenge](https://ursy.com/wiki/managed-challenge/) or [CAPTCHA](https://ursy.com/wiki/captcha/). Bots cannot pass those, so to a bot it ends the same way.

## Common mistakes {#common-mistakes}

- **Blocking Googlebot by accident.**  A country block or [bot score](https://ursy.com/wiki/bot-score/) rule that catches Google’s own crawlers. See [Cloudflare blocking Googlebot](https://ursy.com/wiki/cloudflare-blocking-googlebot/).
- **Using 403 as a speed brake.**  Google says it does not slow crawling.
- **A 403 on robots.txt.**  It wipes out your rules instead of enforcing them.
- **Turning on “under attack” and forgetting it.**  [Under attack mode](https://ursy.com/wiki/under-attack-mode/) challenges everyone, bots included.
- **Blocking by user agent only.**  It is easy to fake. Pair it with IP checks.
- **A login page that answers 403 to the public.**  Fine for private pages, wrong for a product page you want found.

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

A small online shop switches on a “block AI scrapers” setting at its CDN. A week later it checks its own pages with different user agents.

| Visitor | Answer | What it means |
| --- | --- | --- |
| Chrome on a phone | 200 | People see the shop |
| Googlebot (real IP) | 200 | Search is safe |
| GPTBot | 403 | [Training crawler](https://ursy.com/wiki/training-crawler/) kept out, as planned |
| ChatGPT-User | 403 | Not planned: [ChatGPT](https://ursy.com/wiki/chatgpt/) cannot open the page when a shopper asks about it |
| robots.txt for any bot | 403 | Google treats the file as missing |

The fix: allow the user-triggered fetchers you want, keep the block on the training crawler if that is your choice, and make robots.txt answer 200 to everyone. Then put the training rule in robots.txt as well, so polite bots know your wishes.

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

1. Run the page through our [AI Bot Checker](https://ursy.com/ai-bot-checker/). It shows which AI and search bots are allowed or refused.
2. Look at the raw answer for one address with our [HTTP Header Checker](https://ursy.com/http-header-checker/), including which server or edge sent it.
3. Check that robots.txt answers 200 and says what you mean with the [Robots.txt Checker](https://ursy.com/robots-txt-checker/).
4. If a bot in your logs claims to be Googlebot or GPTBot, test the IP with [Verify AI Bot](https://ursy.com/verify-ai-bot/).
5. Read your [server logs](https://ursy.com/wiki/server-logs/) for 403s by bot. A [log file analysis](https://ursy.com/wiki/log-file-analysis/) shows who is refused and how often.
6. In Search Console, open the [page indexing report](https://ursy.com/wiki/page-indexing-report-index-coverage/) and look for “Blocked due to access forbidden (403)”. Google’s [report help](https://support.google.com/webmasters/answer/7440203) notes that Googlebot never sends credentials, so a 403 to it is a server mistake.
7. In URSY Pro, the [Bot rules manager](https://ursy.com/pro/bot-rules-manager/) keeps your allow and block lists in one place, and the [Fake bot detector](https://ursy.com/pro/fake-bot-detector/) flags impostors.

## Questions {#questions}

### What is the difference between 401 and 403? {#what-is-the-difference-between-401-and-403}

401 asks you to sign in. 403 means signing in will not change the answer.

### Should I send 403 or 404 for a private page? {#should-i-send-403-or-404-for-a-private-page}

Either is allowed. MDN notes 404 hides that the page exists. Use 403 when people should know the page is there but closed to them.

### Is it safe to 403 AI crawlers? {#is-it-safe-to-403-ai-crawlers}

It is your choice. Know which ones you are blocking: training crawlers, [search crawlers](https://ursy.com/wiki/search-crawler/) and user-triggered fetchers do different jobs. We weigh the trade-offs in [should I block AI crawlers](https://ursy.com/guides/should-i-block-ai-crawlers/).

### How fast does a 403 page leave Google? {#how-fast-does-a-403-page-leave-google}

Google does not give a time. It says such pages are removed and crawled less over time.

## Related words {#related-words}

- [HTTP status code](https://ursy.com/wiki/http-status-code/)
- [Web application firewall](https://ursy.com/wiki/web-application-firewall/)
- [Block AI crawlers](https://ursy.com/wiki/block-ai-crawlers/)
- [Verified bots](https://ursy.com/wiki/verified-bots/)
- [Crawl error](https://ursy.com/wiki/crawl-error/)

## Sources {#sources}

- [RFC 9110: HTTP Semantics, section 15.5.4 (June 2022)](https://www.rfc-editor.org/rfc/rfc9110.html#name-403-forbidden), checked 24 November 2026
- [MDN: 403 Forbidden](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/403), checked 24 November 2026
- [Google: How HTTP status codes affect Google’s crawlers](https://developers.google.com/search/docs/crawling-indexing/http-network-errors), checked 24 November 2026
- [Search Console Help: Page indexing report](https://support.google.com/webmasters/answer/7440203), checked 24 November 2026
- [Google: Reduce the Google crawl rate](https://developers.google.com/search/docs/crawling-indexing/reduce-crawl-rate), checked 24 November 2026
- [Google: How Google interprets the robots.txt specification](https://developers.google.com/search/docs/crawling-indexing/robots/robots_txt), checked 24 November 2026

*Updated 24 November 2026 by URSY.*
