IT bugsolutions

Errors

403 Forbidden Error on Your Site: Causes and Fixes

Seeing 403 Forbidden or 'not allowed to access this page'? Learn why the server refuses, what you can check yourself and how to fix it safely.

  • By IT bugsolutions
  • 6 min read
Error page with a large 403 and the text access denied

A 403 error means the server finds your website but refuses to show the page. In effect it says: "this page exists, but you are not allowed in". The cause is usually a security layer blocking you (or everyone), wrong file permissions after a migration or update, or a WordPress account that lost its admin rights. Start with one question: does everyone see the error, or only you?

In short
  • 403 means "access denied". The site is online, but the server will not let you in.
  • Does the site work over mobile data? Then a firewall is probably blocking only your internet address.
  • After a migration or upload, wrong file permissions or a missing index file are the usual cause.
  • "Sorry, you are not allowed to access this page" in WordPress is about your user rights, not the server.

What does a 403 error mean?

Every time you open a page, your browser requests it from the server. With a 403 Forbidden, the server answers: "I understand the request and the page is there, but I won't serve it". That is different from a website that is down, or a 404, where the page does not exist.

The error looks different depending on your hosting and browser:

  • 403 Forbidden, often with "You don't have permission to access this resource".
  • Access denied, sometimes with your host's or Cloudflare's logo.
  • HTTP ERROR 403 in Chrome.
  • "Sorry, you are not allowed to access this page." in the WordPress dashboard.
403access denied
404page does not exist
503temporarily unavailable

Why does your website show a 403 error?

Almost every 403 comes from one of these:

  • A security layer blocks you. Your host's firewall, a security plugin or Cloudflare can block your internet address, for example after a few failed logins or because a form submission looked suspicious.
  • Wrong file permissions. After a migration, an FTP upload or a failed update, folders or files are sometimes set so the web server may not read them.
  • A rule in .htaccess. This hidden file holds rules that can keep visitors out. A plugin or a manual edit can leave behind a rule that is too strict or simply wrong.
  • No index file in the folder. If the files are in the wrong folder, or the domain already points to a new host that is still empty, the server has nothing to show and refuses.
  • Your WordPress role is gone. If you only see the message in the dashboard, your account no longer has admin rights. This happens after a migration that set up the database differently, because of a plugin, or after a hack in which someone changed the rights.
  • The hosting account is suspended. After an unpaid invoice or an abuse report, a host sometimes locks the account.

What can you check yourself right now?

  1. Open the site over mobile data. Turn off wifi on your phone and open the page. If it works there, a security layer is blocking only your network. That is good news: the site works for customers.
  2. See how big the problem is. Is it the whole site, one page, or only the dashboard (for example /wp-admin)?
  3. Think about what just changed. A migration, a new plugin, an update, a security setting or a change by your web developer usually points straight to the cause.
  4. Let someone else log in. If a colleague also has an admin account and it works for them, the problem is in your own account or your network.
  5. Ask your host. They can see in the logs why the server refuses. A short question is enough: "My site returns a 403 on [address]. Is your firewall blocking my IP address, or can you see the reason in the error log?"
Browser DNS CDN Web server 403 PHP / App Database
Every page request travels through a chain. A fault at any link shows up as an error.

Which cause matches what you see?

What you seeLikely causeFirst step
Only you see it, mobile data worksYour IP address is blockedAsk your host to unblock it
Whole site 403, just migratedFile permissions or wrong folderHave permissions and folder checked
Started after a plugin or change.htaccess rule or security pluginUndo the last change
"Not allowed to access this page" in WordPressAdmin rights lostLet another admin check
Unknown admins in the user listPossibly hackedDelete nothing, get help now
Never set permissions to 777

Forums sometimes tell you to set all files to "777". That lets anyone on the server change your files. The error goes away, but your site is wide open to attackers. Normal values are 644 for files and 755 for folders.

"Sorry, you are not allowed to access this page" in WordPress

This message comes from WordPress itself, not from the server. It means your user account may not open the page. If you clicked a page of a plugin you just deactivated, it is harmless. If you get it on every dashboard page, your administrator role has disappeared.

After a migration this is a known fault: the database got a different table prefix, so WordPress can no longer find the users' rights. It can be repaired with the right change in the database, without losing data. If logging in to WordPress fails completely, that is a related problem.

Watch for unknown admins

Do you see users you don't know, or is your own role suddenly "subscriber"? Treat it as a possible hack. Delete nothing until there is a backup, and read what to do if your website is hacked.

Can a 403 error hurt your Google rankings?

Yes, if Google itself gets the 403. Some firewalls block search engines by mistake because they request many pages in a short time. Google then cannot read those pages and drops them from the results after a while. In Google Search Console you can see this in the Pages report, or by testing an address with URL Inspection. A 403 lasting a few hours is not a disaster. A block lasting days or weeks is.

How do you prevent a 403 error?

  • Test a migration on a copy first, before the domain is switched.
  • Only change security settings and .htaccess after making a backup.
  • Give every staff member their own account, so there is always a second admin.
  • After an update, check that the dashboard and your key pages still open.
  • Once a month, check Search Console for pages reported as blocked.

How can IT bugsolutions help?

We find out remotely why your server or WordPress denies access, on WordPress, Laravel/PHP sites and web shops. The diagnosis is free. You get a fixed price up front (from €295 excl. VAT), we make a backup before every change, and you only pay after the diagnosis.

Did the error start after moving to a new host? See our website migration help. Did it start after an update, see site broken after an update. You can also contact us directly. A care plan keeps updates and security in check for you, so errors like this are caught early.

Frequently asked questions

Also see