Skip to content Use Monity from Claude, ChatGPT or Codex: set up monitors and ask what changed, from a chat. Use Monity from Claude, ChatGPT or Codex Connect yours
Tutorial 3 min read

HTTP 403 Forbidden: why a site blocks you, and what to try

A 403 Forbidden means the website refuses your request. What to try as a visitor, how 403 differs from 401 and 404, the log lines and firewall pages that show which rule said no on your own site, and what a 403 from an API means.

Alex Lead Product Designer
UpdatedNovember 23, 2026 Read time3 min AudienceSite owners and developers

A 403 Forbidden means the website understood your request and refuses it. It isn’t asking you to sign in: something about the request isn’t allowed, such as your network, your country, a security rule, or a file the server isn’t permitted to show. As a visitor, try another network and a private window. If it’s your site, the error log or the firewall’s events name the rule that said no.

Blocked on a site? Try these first

  1. Check the address. A link to a folder instead of a page can be forbidden on its own.
  2. Turn off a VPN or proxy, or switch to your phone’s mobile data. Security rules often block whole IP ranges, and VPN addresses are shared with strangers.
  3. Open a private window. It drops cookies and most extensions, either of which can trip a rule.
  4. Sign out and back in if the page belongs to an account. If it still says 403, your account isn’t allowed to see it.
  5. Send the site a screenshot. A Cloudflare block page carries a Ray ID; the owner can look it up and change the rule. Reloading won’t help: MDN notes that the same request fails the same way.

403 or 401?

Code What the server is saying Does signing in help?
401 Unauthorized It doesn’t know who you are: credentials are missing or were refused Yes
403 Forbidden It refuses, whoever you are (RFC 9110: it “understood the request but refuses to fulfill it”) No, not with the same account
404 Not Found Sometimes a 403 in disguise: the RFC lets a server hide a page it won’t show Sometimes

Your site: which rule said no?

Read the log for the minute of the 403, or the block page itself:

Where you see it What it means Fix
nginx error log: (13: Permission denied) The web server’s user can’t read the file, often after a migration, a restore or an upload under the wrong owner Ownership and permissions (below)
nginx: directory index of … is forbidden; Apache: AH01276: … server-generated directory index forbidden A folder was requested and it has no index.html or index.php Put the index file back, or point the document root at the right folder
A rule in .htaccess or nginx: Require, Deny, deny, an IP allowlist, a country block, ModSecurity Your own access rules Narrow the rule
A Cloudflare-branded 403, or error 1020 “Access denied” A WAF rule, Security Level or Browser Integrity Check at Cloudflare (Cloudflare) Find the Ray ID in Cloudflare’s security events and change that rule
A file in Amazon S3: “Access Denied” The bucket policy doesn’t allow public reads Fix the policy, or serve the files through your CDN

For permissions, WordPress recommends 755 for folders and 644 for files. From the site’s root folder, with your own path:

find /var/www/example -type d -exec chmod 755 {} \;
find /var/www/example -type f -exec chmod 644 {} \;

Behind Cloudflare, also allow Cloudflare’s IP ranges at your origin, or the origin may block Cloudflare itself.

APIs: a valid token that isn’t allowed

An API answers 403 when it knows who you are but your token lacks the right. RFC 6750 names this insufficient_scope. Ask for the missing scope or role; sending the same token again won’t change the answer. One exception to know: GitHub’s API also answers 403 for rate limits, and the retry-after or x-ratelimit-remaining headers tell the two apart.

When a security rule blocks real visitors

A new firewall rule can lock out a country, a mobile carrier or your own customers, and nothing on your servers looks wrong. A check from outside shows it. A website monitor in Monity’s uptime monitoring counts any status outside 200 to 399 as down by default, so a 403 alerts like an outage.

The settings of a Monity website monitor: checks every minute from US East, down when the status is not 200-399 or there is no answer in 30 seconds, slow over 2 seconds, certificate and domain warnings, email alerts
A website monitor’s settings: down when the status isn’t 200 to 399, so a 403 from a firewall rule raises an alert, checked from US East every minute.

More: 401 Unauthorized, 404 Not Found and all HTTP status codes.

FAQ

Questions people ask

Why do I get a 403 when others can open the site?

Something about your request matches a block: your IP address or network, your country, an extension, an unusual browser or a cookie. Try another network and a private window to narrow it down.

Can a VPN cause a 403 Forbidden?

Yes. Firewalls block address ranges that sent suspicious traffic, and a VPN’s exits are shared by many people. If the page loads with the VPN off, that was the reason.

How do I fix 403 Forbidden on WordPress?

Read the error log. The usual causes are file permissions (folders 755, files 644), a rule in .htaccess, a security plugin or firewall, or a missing index.php. If the 403 started after a change, undo it first.

Does a 403 hurt SEO?

On a page you want in search, yes. Google doesn’t index URLs that return a 4xx and drops those already indexed. Google also says 401 and 403 don’t slow its crawler, so don’t use them for that.

Is a 403 the same as “Access denied”?

Usually. “Access denied” is the wording many firewalls and storage services put on their 403 pages, Cloudflare’s error 1020 and Amazon S3 among them.

What does a 403 from an API mean?

The API knows who you are and refuses this action: your token lacks a scope or role. Some APIs, GitHub’s included, also use 403 for rate limits.

Written by

Alex

Alex leads product design at Monity. From the plain-English setup to the way an alert is laid out, her work is about making website monitoring something anyone can use, technical or not. She writes here about product design and usability.

More by author
Kamil, Alex and Martyna A person replies within two working days

Have a question?

Pricing, security or scoping: pick one and your message goes to a person on the team.