Hosting

403 Forbidden Error: What It Means and How to Fix It

A 403 Forbidden error means the server refuses to show a page. Learn what causes it, from permissions to Cloudflare rules, and how to fix it step by step.

By Zebra Hosting Cloud

A 403 Forbidden error means the server found the page you asked for but refuses to show it to you. Your site is not gone and your files are usually safe. Something is saying “no”: file permissions, a rule in .htaccess, a security plugin, a firewall or a Cloudflare rule. Below, we explain what the error means and how to fix it, one cause at a time.

What a 403 error means, and how it differs from 404 and 500

Every time a browser asks for a page, the server answers with a status code: a three-digit number that says how the request went.

CodeWhat it saysTypical cause
403 Forbidden“I have it, but you may not see it.”Permissions, a deny rule, a firewall or a plugin block
404 Not Found“There is nothing here.”A deleted page or a wrong link
500 Internal Server Error“I tried and broke.”A PHP error or a faulty plugin

Some servers word the same error as “Access denied” or “You don’t have permission to access this resource”. First, check whether the error shows for everyone or only for you. Open the site on your phone using mobile data, not your office Wi-Fi. If it loads there, the block is probably aimed at your internet connection, not at your files.

Wrong file and folder permissions

Permissions are small rules on every file and folder that say who may read, change or run it. If they are too strict, the web server cannot read your files and answers with 403. The usual safe values are 644 for files and 755 for folders. WordPress’s wp-config.php can be stricter, such as 640 or 440.

  • In Plesk, open File Manager and check the permissions of your site’s folders and files.
  • Set folders to 755 and files to 644. Avoid 777: it lets anyone on the server change the file and is a security risk.

Server rules: .htaccess and index files

A broken .htaccess file or a deny rule

The .htaccess file is a small text file in your site’s folder that gives the web server extra rules, such as redirects and who is allowed in. A single deny rule, such as Deny from all or Require all denied, blocks every visitor to that folder and everything inside it.

  • In File Manager, download a copy of .htaccess as a backup, then rename the original to .htaccess-old.
  • Reload the site. If the 403 is gone, the file was the cause.
  • On WordPress, create a clean file: go to Settings → Permalinks in wp-admin and click Save Changes.
  • Look through the old file for deny rules or IP blocks you don’t recognise before you copy anything back.

A missing index file or disabled directory listing

When someone opens a folder address, the server looks for a start page called an index file, such as index.php or index.html. If there is none, and directory listing (showing a list of the folder’s files) is turned off, the server returns 403. This is common right after an upload into the wrong folder.

  • Check that your site files sit in the folder your domain points to, by default httpdocs in Plesk, and not in a subfolder inside it.
  • Make sure an index file is there, named in lower case.
  • Keep directory listing off. Turning it on just to remove the error shows your files to strangers.

Security plugins, firewalls and Cloudflare rules

A security plugin or server firewall

Many security plugins block an IP address (the number that identifies your internet connection) after too many failed logins, and some block whole countries. A typical case: a shop in Prishtina locks out any address after three wrong passwords. One staff member mistypes their password three times, and now everyone on the office network gets a 403 on wp-admin, while customers at home see the shop normally.

  • Remove your address from the plugin’s block list. If you can’t log in, rename the plugin’s folder in wp-content/plugins through File Manager to switch it off, then rename it back once you are in.
  • Check any country blocking, especially if you use a VPN.

A Cloudflare security or WAF rule

A WAF (web application firewall) checks each visit and stops requests that look like attacks. If the 403 page carries Cloudflare branding and a “Ray ID” code near the bottom, the block came from Cloudflare, not from your site. We put Cloudflare CDN and DDoS filtering in front of every site we host, so if you see this page, include the Ray ID in your support ticket.

Hotlink protection and ownership after a migration

Hotlink protection stops other websites from showing your images on their pages. Set too strictly, it can also block your own images, for example on a second domain. Check that every domain you use, with and without www, is on the allowed list.

Ownership is different from permissions: it says which system user a file belongs to. After you copy a site from another host, files can end up owned by the wrong user, and the web server refuses them even when permissions look right. On shared hosting, you usually can’t fix this yourself, so ask your host. When we move a site for you, we test it on a preview link first, so problems like this show up early.

When to contact your host

If you have worked through the checks above and the 403 is still there, write to your host. Include:

  1. The exact address (URL) that shows the error, such as /wp-admin.
  2. The date and time you saw it, with your time zone.
  3. A screenshot of the full error page, including any Ray ID.
  4. Your public IP address. Search “what is my IP” to find it.
  5. What you changed recently: a new plugin, an upload, a migration or an edited .htaccess file.

Your host can read the server’s error log, which often names the reason for a 403. In Plesk, you can usually check your domain’s logs yourself. If you host with us, you can reach us through our contact page.

Getting help with a 403 at Zebra Hosting

Our shared, WordPress and reseller plans come with Plesk, including File Manager, so you can do most of these checks yourself. When you can’t, real people answer tickets in 17 languages, including Albanian. If you run WordPress, see our WordPress hosting plans.