Meaning
- 401 Unauthorized
- The request lacks valid authentication credentials
- 403 Forbidden
- The server understood the request and refuses it
A 403 means the server understood your request and refuses it. See who sent it (origin, CDN or WAF), how visitors get past it and how owners fix it.
A 403 Forbidden response means the server understood the request but refuses to fulfill it. Unlike a 401, signing in again usually changes nothing. The refusal can come from the origin server's permission rules or from a CDN, firewall or WAF in front of it. Visitors can't force past it. Owners find which layer answered, then change that layer's rule.
Four quick questions, then a straight answer.
From your answers, this is quietly costing you traffic and nobody has the hours to chase it. Scaplet finds every affected page, drafts the fixes and tracks how AI answers mention you.
A data platform shipped 46 fixes without a ticket.
This looks handled. Re-check after a redesign, a migration or a big content push; that is when it breaks.
Your site is small and you have the time. Work through the steps on this page, starting with the pages that get the most traffic.
MDN puts the practical consequence plainly: for a 403, authenticating or re-authenticating makes no difference, and a client that repeats the request without modification should expect the same error. A 403 is usually tied to application logic, such as a role that lacks permission for a resource or action.
See 401 Unauthorized for the other half of the pair. The wider family is covered in HTTP status codes.
Request the URL, then request it again straight to the origin, bypassing the CDN. AWS's CloudFront guidance for a custom origin is to make the request directly to the origin: if the error reproduces without CloudFront, the origin is causing it.
Use the Cloudflare Security Events log, the AWS WAF web ACL, or the origin's access and error logs. Match on timestamp, client IP or request ID.
Look for a permission, IP, WAF, geo or signed-URL rule that matches the request. The fix is a change to that rule, not a retry.
Repeat the request with the same IP, user agent and credentials the failing client used. A request from your own machine proves little.
# Through the public hostname
curl -sI https://example.com/page
# Straight to the origin IP, keeping the Host header and TLS name
curl -sI --resolve example.com:443:203.0.113.10 https://example.com/pageIf both return 403, fix the origin. If only the public hostname does, the CDN, WAF or load balancer in front of the origin is the one refusing.
Causes and fixes differ by server and platform. See the 403 guides for Apache, Chrome, Cloudflare, CloudFront, IIS, nginx, WordPress.
Google treats every 4xx except 429 the same way: the URL is reported as not having content, and an indexed URL is removed from the index. Its documentation also says not to use 401 or 403 to limit crawl rate, because 4xx codes other than 429 have no effect on it. A 403 on a page you want indexed is therefore a ranking problem, not just a visitor problem. See 4xx errors for how to find and fix affected URLs, and Google's page on how HTTP status codes affect its crawlers.
Related errors: API Gateway.
4 questions people ask next, answered from the sources on this page.
Not always. It means the server refuses the request. The reason can be a permission rule, an IP deny rule, a WAF or security rule, or a role your account lacks. Cloudflare lists origin permission rules, mod_security rules and IP deny rules among the common origin-side causes.
A 401 says the request lacks valid authentication credentials and carries a WWW-Authenticate challenge, so new credentials can help. A 403 says the server understood the request and refuses it, so re-authenticating usually makes no difference.
Not with the same request. RFC 9110 says the client should not automatically repeat it with the same credentials, and MDN says to expect the same error. Change the credentials, the permission or the blocking rule first.
RFC 9110 allows an origin server to answer 404 instead of 403 to hide that a forbidden resource exists. Some sites do this for users without permission.
Run the free audit, then approve the fixes. Every change can be undone.