403 Forbidden is the answer a web server gives when it understood a request but will not serve it, because the visitor, bot 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? #
It is one of the 4xx client error codes in the HTTP status code list. RFC 9110, the HTTP standard, says the server “understood the request but refuses to fulfill it”. MDN 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? #
- A firewall or bot rule. A web application firewall, a security plugin or a CDN setting blocks a country, an IP address, a network block or a user agent.
- 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.
- 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 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 that only some people may open. Here a 403 is correct.
Why does it matter for search? #
To Google a 403 is just another 4xx. Its guide to how status codes affect its crawlers says content behind a 4xx is not used, and that an indexed address which starts returning one is removed from the index, with crawling of it slowing down over time. A public page that sends 403 to Googlebot will fall out of search.
The same page gives a clear warning: do not use 401 or 403 to limit the 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 says to return 500, 503 or 429 instead, and only for a day or two.
A 403 on your robots.txt file is a special case. Google’s robots.txt spec 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? #
A 403 is the bluntest way to keep an AI company out. If GPTBot, ClaudeBot or 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 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 the real one; allowing by name alone lets fakes in. Check the IP against the published lists, as described in verified bots and reverse DNS bot check.
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 logs will be empty. Some edge services show a challenge page first, such as a managed challenge or CAPTCHA. Bots cannot pass those, so to a bot it ends the same way.
Common mistakes #
- Blocking Googlebot by accident. A country block or bot score rule that catches Google’s own crawlers. See 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 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 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 kept out, as planned |
| ChatGPT-User | 403 | Not planned: 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 #
- Run the page through our AI Bot Checker. It shows which AI and search bots are allowed or refused.
- Look at the raw answer for one address with our HTTP Header Checker, including which server or edge sent it.
- Check that robots.txt answers 200 and says what you mean with the Robots.txt Checker.
- If a bot in your logs claims to be Googlebot or GPTBot, test the IP with Verify AI Bot.
- Read your server logs for 403s by bot. A log file analysis shows who is refused and how often.
- In Search Console, open the page indexing report and look for “Blocked due to access forbidden (403)”. Google’s report help notes that Googlebot never sends credentials, so a 403 to it is a server mistake.
- In URSY Pro, the Bot rules manager keeps your allow and block lists in one place, and the Fake bot detector flags impostors.
Questions #
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? #
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? #
It is your choice. Know which ones you are blocking: training crawlers, search crawlers and user-triggered fetchers do different jobs. We weigh the trade-offs in should I block AI crawlers.
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 #
Sources #
- RFC 9110: HTTP Semantics, section 15.5.4 (June 2022), checked 24 November 2026
- MDN: 403 Forbidden, checked 24 November 2026
- Google: How HTTP status codes affect Google’s crawlers, checked 24 November 2026
- Search Console Help: Page indexing report, checked 24 November 2026
- Google: Reduce the Google crawl rate, checked 24 November 2026
- Google: How Google interprets the robots.txt specification, checked 24 November 2026
Updated 24 November 2026 by URSY.
Cite this page: 403 Forbidden. URSY. Updated 24 November 2026. https://ursy.com/wiki/403-forbidden/ · Section links
Tools for this
- LiveAI Readiness Checkeris your site ready for ChatGPT, Gemini, Claude? Score + fixesRun the check →
- LiveAI Bot Checkerwhich AI bots your robots.txt lets inRun the check →
- LiveRobots.txt Checker + Generatortest any address against your rules, or write new onesRun the check →
- LiveSchema Markup CheckerRun the check →