How to fix a 403 Forbidden error

A 403 Forbidden error means the server understood the request and refuses to show the page. Here are the 5 usual causes, what you can check yourself first, and what to ask your host or support.

A customer clicks a link to your website and gets “403 Forbidden” instead of your homepage, your price list or your contact form. Sometimes it is one page, sometimes the whole site, and sometimes only visitors from one network or country see it. The visitor did nothing wrong, and most of them will not try a second time.

The short answer: a 403 Forbidden error means the server received the request, understood it and refuses to show the page. The page or folder exists, but a setting on the server, a security rule or a missing file says this visitor may not see it. If you only want the short definition, read what 403 Forbidden means. This guide explains what it means for your business, the five usual causes in plain words, what you can check yourself first and what to ask your host or support.

What a 403 Forbidden error means for your website

Every time someone opens a page, their browser asks the server for it. The server answers with a status code. A 403 is the server saying: I know what you want and I am not going to give it to you. Unlike a login screen, it gives the visitor no way to get in.

You will see the error written in different ways, depending on the server, the security service and the browser:

  • 403 Forbidden, sometimes with the name of the web server below it
  • HTTP Error 403 or Error 403
  • “You don't have permission to access this resource”
  • Access Denied or Forbidden
  • A page from a security service or firewall that says your request was blocked

They all mean the same thing: the server works and the address is right, but access is refused. A 403 on a page that should be private is fine. A 403 on your homepage, your shop or your contact form costs you customers and orders.

403, 401, 404 or 500: which error do you have?

These errors look alike, but each one points to a different problem:

A 403 and a 401 both say “no entry”, but a 401 asks for a login and a 403 does not. If the error starts with a 5, the server itself has a problem, such as a 502 Bad Gateway. A 4xx error means the server works and something about the request or its settings is refused.

The 5 usual causes of a 403 error

File or folder permissions that are set wrong

On a server every file and folder has permissions: who may read it, change it and open it. If the web server is not allowed to read a file, it cannot show it and answers with a 403. This often happens after uploading files by hand, after a move to new hosting, or after a plugin or script changed the permissions. The usual setting for web files lets the server read them while only you can change them.

A missing home page or a wrong index file

When someone opens your domain or a folder, the server looks for a start file, usually called index.html or index.php. If that file is missing, misspelled or in the wrong folder, many servers do not show a list of the files in that folder for safety reasons and answer with a 403 instead. This is common right after a new site was uploaded, or when the files went into a subfolder instead of the main folder.

A blocking rule, security plugin or firewall

Servers, security plugins and firewalls in front of your site block requests they find suspicious. A rule that is too strict can block normal visitors, a whole page, or the form that sends you leads. A rule in a server configuration file, such as a deny line added by a plugin or a previous developer, has the same effect. If the error started after you installed or changed a security tool, that tool is your first suspect.

IP or country blocks

Some sites block IP addresses or whole countries to keep out spam or attacks. If the list is too wide, real customers are blocked too: people on a VPN, people on mobile data that share an IP address with many others, or customers who are travelling. If only some visitors see the 403, and others see your site as normal, a block of this kind is likely.

An expired login or hotlink protection

A members area or customer portal can answer with a 403 when a visitor's session has expired or their account has no access to that page. Hotlink protection, which stops other sites from showing your images and files, can also block your own pages when it is set up with the wrong domain, for example after you switched from http to https or added or removed “www”. Then images, downloads or whole pages fail with a 403.

What you can check yourself first

Work through these checks in order. The first ones take a minute and need no access to anything; for the later ones you need your hosting account or website dashboard.

  1. Reload the page and check the address. Look for a typing error, an extra slash or an old link. A folder address without a page at the end can give a 403 while the page itself works.
  2. Open it in a private window and on your phone over mobile data. If it works there, the problem is close to you: clear your cookies for the site, log in again, or turn off a VPN. If it fails everywhere, the problem is on the server side.
  3. See who gets the error and on which pages. Is it the whole site, one page, only images, or only visitors from one country? The whole site points to the home page file or a server rule; one page to its permissions or a protection setting; some visitors to an IP or country block.
  4. Undo the last change. Think of a security plugin you installed, a new firewall rule, a move to new hosting or files you uploaded. Switch the plugin off, roll the change back or restore the backup from just before, and test again.
  5. Check that your home page file is there. In your hosting file manager, open the main folder of your site and look for index.html or index.php. Make sure the site files are in that folder and not one level deeper.
  6. Look at the permissions of the folder and the file. In the file manager you can see and change them. If one file or folder differs from the others, set it back to the same setting as the rest. Ask your host if you are not sure which setting is right.
  7. Look at your security and block settings. Check the blocked IP addresses and countries in your security plugin, firewall or hosting panel. Unblock your own address and the address of a visitor who reported the error, and test again.
  8. Check hotlink protection and the https settings. If images or files give a 403, make sure your own domain is on the allowed list, with and without “www” and with https.

When to ask your host or support

Contact your host or website platform if the error lasts after these checks, if it covers your whole site, or if you do not have access to the file manager or the security settings. Hosts see the server logs, which say exactly which rule or permission refused the request. Send them:

  • The exact addresses that show the error, and the addresses that still work.
  • When it started, with the time zone, and whether everyone sees it or only some visitors.
  • The exact message, preferably with a screenshot.
  • Where you were when you saw it: your network, your country and whether you used a VPN.
  • Whether you use a security plugin, a firewall or IP and country blocks.
  • What changed just before and what you already tried.

What a 403 error does to your Google results

Search engines treat a 403 as a sign that a page is not available. A page that keeps answering with a 403 can drop out of the results, and if a firewall blocks search engine crawlers, your whole site can lose its place. Check in Google Search Console which pages give errors, and make sure your security tools let the real search engine crawlers in. Pages that should stay private are better kept out of search results on purpose than left to fail with an error. Also read how to handle website downtime.

How WEMASY keeps 403 errors off your website

With a WEMASY website, hosting and publishing are part of the platform. You do not upload files to a server, so there are no file permissions, index files or server rules for you to set up or get wrong, and the servers are managed for you.

  • A secure connection on every site. SSL certificates are included on every WEMASY plan and turned on automatically, so your site runs on https without extra setup. See what an SSL certificate is.
  • Your homepage cannot go missing. Your homepage is the page with the address /. If your website has none yet, the Website Builder asks you to create it, and you cannot delete your homepage. See set up your homepage.
  • Private pages with a login block, not an error. With “Secure page with password”, visitors without the password see the public side of the page with a login block, and the protected content after they enter the password. See password-protected pages.
  • Offline on purpose, with your own message. When you put your site in maintenance or offline mode, visitors see your own maintenance or offline page instead of a bare error. See website availability settings.
  • A change that broke something can be undone. On the Versions page you go back to what was live before and publish again. See make a version live and roll back. If an error stays, send our support team a ticket with the address and the time: see support tickets.

Frequently asked questions

What does 403 Forbidden mean in plain words?

The server received the request and understood it, but refuses to show the page. The page exists and the server works; a setting, a security rule or a missing file says this visitor may not see it.

What is the difference between a 401 and a 403 error?

A 401 means the server wants a login and did not get one it accepts, so logging in can help. A 403 means access is refused for this visitor or address, and logging in does not change that.

Is a 403 error my fault or my host's?

It can be either. Wrong file permissions, a missing home page file, a strict security plugin or an IP block you set yourself are on your side. A firewall or security rule at your host can also cause it. If nothing changed on your side, ask your host to check the server logs.

Why do only some visitors get a 403 error?

Then a block is usually the cause: an IP or country block, a firewall that does not trust a VPN or a shared mobile network, or an expired login in a members area. Visitors who are not blocked see your site as normal.

Can a visitor fix a 403 error?

Sometimes. Checking the address, logging in again, clearing cookies or turning off a VPN can help. If the error comes from the website's settings, only the owner or the host can fix it.

Does a 403 error hurt my ranking in Google?

If it lasts, yes. Pages that keep answering with a 403 can drop out of the results, and a firewall that blocks search engine crawlers can hurt your whole site. A short error that is fixed quickly does little harm.

Put it to work
on your own website.

Start free with WEMASY and build your site in a few minutes.