Getting a 403 forbidden error is a tiresome affair and it disrupts the flow of work. If you are going through this article, chances are that you have come across a 403 error and you do not know how to handle the situation correctly. These kinds of errors prevent or take away your permission to access certain websites or pages over the server. There can be many reasons for an impending 403 forbidden error and the reasons for such an error may vary from time to time and site to site or even server to server. Even if your hosting provider makes some changes to the server side, you may find yourself at the receiving end of a 403 error. In this post we are going to discuss the Top 3 Methods to Fix 403 Forbidden Errors.

Top 3 Methods to Fix 403 Forbidden Errors

What is 403 Forbidden Error?

Top 3 Methods to Fix 403 Forbidden Errors

Before moving forward to tackle such a problem { i.e Top 3 Methods to Fix 403 Forbidden Errors}, you must understand what a 403 error actually is. It is said that when you understand a problem, half the work to solving it is already done. A 403 error represents a status code from HTTP. There are pages and websites over the internet wherein you require some sort of permission to access them. If you are trying to access such a site. You will receive the 403 forbidden errors. Different ways in which a 403 error is displayed are listed as below:

  • 403 Forbidden
  • HTTP Error 403- Forbidden
  • Access Denied. You do not have permission to access it. And so on!

 

Why 403 Errors?

Getting a 403 Forbidden Error while you are working is troublesome becomes it disrupts the flow of work. The simplest reason for getting such an error message is because you are trying to access something over the internet to which you do not have any access whatsoever! However, there may be quite a handful of intricate reasons for getting such an error message. The server simply says that you do not have permission to access a certain site but does not elaborate upon it. Such an error comes about either because of incorrect permissions for files and folders or because of improper settings loaded into .htaccess files on the back-end.

 

Top 3 Methods to Fix 403 Forbidden Errors

Now that you have an idea what a 403 error is, it is time for us to move to how to deal with such errors. Top 3 Methods to Fix 403 Forbidden Errors. Since WordPress has become quite popular over the last few decades, we will be discussing solutions that cater particularly to WordPress sites but may be universally applied to help you with your problem.

  1. Checking .htaccess Files
  2. Resetting Directory Permission
  3. Disabling WordPress Plugins (200)

 

1. Checking .htaccess Files

There is a chance that many of us have never seen a .htaccess file before since this is a hidden file{ as its name start with a dot}. With certain file managers, these files are easily visible or you can also opt for showing hidden files through your computer system. You can also use cPanel or such control panel options to check the .htaccess files. All you have to do is click on the “File Manager” option in cPanel, go to the “public_html” directory, and look for .htaccess files. There is a chance that you may not find the file- in such cases opt for showing hidden files through the “Settings” tab and you are good to go.

Each and Every WordPress site uses the .htaccess file as it is part of the server configuration and functions by changing the Apache Web Server configuration. The file may be unavailable or may be accidentally deleted, and in such cases, this needs to be created manually. Once you get the .htaccess file, you need to do the below listed things.

  • Download this file to the computer system to ensure that there is a backup {Important}.
  • Remove the original file.
  • Try to access the website that was initially not giving access.
  • If the website works better, then you can sure that the .htaccess file that you had was corrupted and was malfunctioning.
  • In your WordPress dashboard, you have to click on the “Settings” tab. Under this tab, you will find an option called “Permalinks”. You have to go there if you want to create a new .htaccess file.
  • Do not make any changes once you open “Permalinks”. You will find a “Save” button at the bottom of the page. Directly click on this button.
  • Now you have successfully created a new .htaccess file for your server.
  • And there is all good for now!

2. Resetting Directory Permission

Sometimes, there is bad permission to the files and folders which hinders access to a site. This could be an another solution of Top 3 Methods to Fix 403 Forbidden Errors. In such cases, creating a fresh .htaccess file will not help you out. You have to use an FTP client to access the hosting account’s root directory. Here are the steps that are going to help you out if the previous method does not work perfectly.

  • Get access to your website files through any available FTP client.
  • Through this, you have to enter the hosting account’s root directory.
  • Choose the folder named “public_html”. It may be available in another name, but you have to choose the folder comprising of all the website files. Right-click on the folder and choose the option named “File Permissions”.
  • Herein, you have to check the “Apply” box that is listed alongside directories only. There is a numeric field wherein you have to enter permission “755” and finally click on OK.
  • Once the required changes are reflected in the folder you have to repeat the third step.
  • You will see an “APPLY’ button in the dialog box, check it and it will ask for a numeric value enter “644”.
  • Once done, you can try opening the website and check to see if the problem is resolved or not.

3. Disabling WordPress Plugins

You may find yourself in a situation when both of the above-mentioned steps may not work. Then for your WordPress website among Top 3 Methods to Fix 403 Forbidden Errors this will work for you. This third method is strictly for WordPress sites only. The reason the first two methods did not work for you is that you may have installed a plugin that is faulty. Disabling the plugins is helpful in such a case. You can disable one plugin at a time or you can disable all of them at once. Read our post on securing WordPress website. It is advisable to disable all of them at once and then allow one at a time. Follow these steps.

  • Go to the “public_html” folder comprising of all your website data by using any FTP client. The folder name may vary; you have to choose the one containing the installation files for WordPress.
  • Look for the folder named “wp-content”.
  • Then go for the “Plugins” folder and rename it to something else to keep a track of it.

Once you are done with this step you may check if your website is running or not. If it is running smoothly then the problem was with the plugins only. However, if your problem is still not resolved, then it is time that you contact your web hosting service provider for some expert advice and solutions and other better solutions.

 

Conclusion

Such an error message can be very irritating and may even be preventing access to important websites. You do not want to be at the receiving end of such an error message. It can also prevent your access to a site which is important for your work. When you follow the steps that are mentioned in this article you can easily get rid of 403 forbidden error messages. This in turn will help bring loads of traffic to your website. Hope you like our post Top 3 Methods to Fix 403 Forbidden Errors, feel free to share your thoughts.