What Is 403 Forbidden Error?

In this article, we will explain what a 403 forbidden error is, as well as we will let you know 3 methods to fix it.

What Is a 403 Forbidden Error?

The 403 Forbidden Error is an HTTP status code that pops up when you try to go to a site whose access has been forbidden. The code also comes in the form of the following statements:

  • Access Denied You don’t have permission to access
  • Forbidden: You don’t have permission to access [directory] on this server
  • 403 forbidden requests forbidden by administrative rules
  • HTTP Error 403 – Forbidden

It sometimes will also simply read 403 Forbidden. Whatever the phrase used, it can still be a frustrating experience to encounter it. The reason you see this code in the first place is your website’s way of making sure you or anyone else who is trying to access the page knows they do not have permission to do so. It is often caused by incorrect folder or file permissions, or incorrect settings within the .htaccess file.

How to Fix 403 Forbidden error?

The easiest way to take care of the problem comes in the form of the following steps:

  • Reset or rename the .htaccess file.
  • Reset the folder permissions alongside the file.
  • Disable any WordPress plugins you may have running.

Let’s move to understanding various methods.

1. Check the .htaccess file

If you’re unfamiliar with this file because it is typically hidden in the directory of the project. This file is a server configuration file that works by changing the Apache Web Server settings that alter the configuration. If you are using cPanel, you can find it by accessing the cPanel through the File Manager. To do so, follow these steps:

  • Use the Control panel to find the File Manager.
  • Look for the .htaccess file in the public_html directory.
  • If you can’t find them, go into settings and enable the "show hidden files" option.

After finding the file, you will need to:

  • Download the .htaccess file to your computer in order to create a backup.
  • Delete the file once the backup has been created.
  • Try to access the website again.

If you can access it, it usually means the .htcaccess file was corrupt. Generate a new one by going to Settings and then Permalinks. Lastly, click on save changes.

2. Reset File and Directory Permissions

Another fix for the 403 forbidden error message is that you have bad permissions for your folders or individual files. Typically, when files are created, they are done with certain default Linux permissions.

This will control how you execute, write, and read the files when you use them. Using an FTP client will help you edit your folder permissions.

  • Access the site files using any FTP client.
  • Look in the root directory of the account.
  • Choose the main folder that houses all site files and right-click to access "file attributes".
  • Choose "Apply to directories only".
  • Enter permission number 755 in the field for numeric values.
  • Press O.

Once that is completed, follow these steps to finish:

  • Go back to the main folder that houses all site files and right-clicks to access "File attributes".
  • Choose "Apply to files only".
  • Enter 644 into the numeric field.
  • Access the site again and see if it worked.

3. Disable WordPress Plugins

While plugins are useful for making your site into what it is, they have also been known to cause issues such as 403 forbidden errors. The best way to proceed would be to disable all of the plugins you use at the same time, instead of doing each one individually. Through this step, you can find the problem and begin working on the remedy.

  • Access the Hosting account using an FTP and search out the public_html folder.
  • You can instead choose the folder that contains your WordPress installation files.
  • Find the wp-content folder on this page.
  • Find the plugins folder.
  • Rename the plugins folder to something different so it is easier to keep tabs on, such as "disabled plugins".

After all of the plugins have been disabled, try to get onto the site again. If it fixed the 403 forbidden error message, the source of the problem is indeed a plugin. This time, you can deactivate the plugins one by one to diagnose which one is causing the error.

After you have located the culprit, you can install a new plugin with similar functionality or check for newer updates that might fix the issue.

If none of the listed steps worked for you, you will need to contact the hosting provider to have them help you resolve the issue. It is important to note that if you have recently transferred your site from one host to another, and did not alter the nameservers, the domain name might still be leading the access to the old web host.

Of course, when they cancel your account, you will get a 403 forbidden error when trying to access the page.


403 forbidden error messages can be frustrating, but they can be just as easy to resolve. No matter what the cause of the error message, there are steps you can take to fix the source and get things working well again.