403 Forbidden Error in WordPress

The Easiest Way to Fix a 403 Forbidden Error in WordPress

Forbidden errors, or the 403 error in WordPress, arise when your site has permission settings that are incorrect. Every file and folder has a permission access number that can control whether the content is writable, executable, or readable.

It can cause a great deal of damage when trying to attract visitors if these get changed. Today I am going to show you some options that allow you to fix a 403 error in WordPress.

The error can also affect your reputation as a professional in your field as people will not be able to access your content. Even though 403 forbidden errors on a WordPress site can be problematic, they are actually quite easy to identify and fix.

In some instances, it could be as easy as re-configuring a security plugin or removing one that is corrupt.

How Do 403 Forbidden Errors Occur?

Simply put, when you see a 403 forbidden error, it means that you do not have the permissions needed to view the requested file or resource. The error can be intentional sometimes. However, oftentimes, it is due to certain permissions being misconfigured.

There can be several things that cause this type of error to show. More often than not, a 403 error in WordPress is caused by security plugins that have been added to a website and not configured properly.

When not configured properly, these security plugins can block IP addresses because they incorrectly think that they are malicious.

A 403 error can also be caused by a host detecting an infection during real-time scans. Again, it may be misread because of an outlying issue, but when detected, these infected domains are often disabled.

Let’s take a look at a few different ways to look for these problems and fix a 404 error in WordPress.

How to Fix a 403 Error in WordPress

Method 1: Verifying Plugins as the Cause of the 403 Error

Deactivate plugins to see if you fix the 403 error in WordPress

Not every plugin you come across in WordPress will be compatible with your site. In fact, there are several plugins that simply don’t work well when put together. In order to verify that a plugin is causing the 403 error on your site, you’ll need to do the following:

  1. Deactivate all plugins that are installed on your WordPress Site.
  2. Re-activate one of the plugins on your list.
  3. Visit the site to see if the 403 error is being displayed.
  4. Repeat steps two and three until the 403 error is shown. This is the plugin that is causing the problem. You may need to change its configuration settings or remove it entirely.

If you deactivate all of your plugins and the 403 forbidden error is still being displayed, then the problem may not be plugin-related. If this is the case, then you’ll need to do additional troubleshooting.

What if You Can’t Access WordPress to Disable Plugins?

If you are not able to access WordPress to delete plugins, then you can log in to your cPanel and jump into the file manager section. Access the wp-content directory and look for the Plugins folder. Once in the Plugins folder, delete any plugins you want directly out of the file manager.

An alternative is to move these plugins to a new location, such as a temporary directory. This way, you don’t have to lose any custom tools or premium plugins by deleting them outright.

My point is that WordPress will not detect and run the plugins from this folder if they are not present. So, if it was a plugin causing the 403 error, your website will return to normal.

Then, you can add the plugins back one at a time until you find the one that is causing the issue.

Method 2: Checking the .htaccess File of Your Site

check ht access

The .htaccess file can cause a lot of complications on your site if it’s not properly configured. A corrupt or modified file can prevent users from accessing certain pages or even the entire site itself.

Not sure where to find the .htaccess file? No worries, you can easily find it here. There are two ways you can check the .htaccess file of your site once you find it. You can check it through FTP access or through WordPress Plugins.

FTP Access

If your web hosting company uses applications like cPanel, the .htaccess file can be directly accessed and modified by using the «File Manager» tool for your domain.

Other FTP programs can be used to access those files as well, such as CuteFTP or FileZilla.

WordPress Plugins

Using a WordPress plugin that deals with .htaccess file issues is never a bad choice and can help stabilize the .htaccess file. These can be found by going to the «Plugins» section of your dashboard, clicking on «Add New» at the top, and searching for «htaccess.»

Find one that you like and use it to check your .htaccess file.

Method 3: Removing the .htaccess File

If you believe the .htaccess file is corrupt or having problems, you can simply remove it entirely. Using FTP access or otherwise viewing the root folder of your website, you can delete the file from the system.

After this is done, go to «Settings» in the WordPress dashboard and select «Permalinks» in the list. Once you hit the «Save Changes» button, a new .htaccess file will be created automatically.

Note: You don’t have to change any of your current settings in order to press this button.

Method 4: Addressing File Permissions of Your Website

File permissions can be somewhat time-consuming to fix if you don’t have the right software. Many FTP clients will give you access to those permissions and allow you to change them.

However, you must be confident in what you’re doing. If you don’t know exactly how to change the access numbers of web pages and content, you could disable a large number of features on the site.

The folder permissions of any WordPress site should be set to 744 or 755. Anything else could prevent new content from being added to the folder. This could prevent future updates, additions, or changes you may need to make later on.

file permission

File permissions should be set to 644 or 640. If these numbers are set incorrectly, it could lead to hackers and bots having the ability to edit those files. This could lead to compromises and malicious code being delivered to your visitors.

Some FTP clients will allow you to change these permissions en mass. This could save you a great deal of time from accessing each file one by one. Just be absolutely sure you understand the risks before altering any of these permissions.

Method 5: Deactivate the CDN

At this point, you might want to try deactivating the Content Delivery Network (CDN). For those unaware, a CDN is a network of servers that store copies of your website so that users can connect to a server that is closer to their location.

The end result for a user is that the page loads faster because they are eliminating servers from the equation, which may be located on the other side of the world.

If you have a CDN enabled, to figure out it is the problem, all you need to do is disable it. To do this, just log into the hosting account for your website, Go to the CDN settings, and disable it. If you’re having trouble, contact the CDN for assistance.

If the error goes away, there is a problem with the CDN and you’ll have to contact the network and your web host for a solution. This isn’t a problem you can actually fix as there may be hardware or software issues out of your control.

Fix The 403 Error In WordPress ASAP!

A 403 error can be somewhat debilitating for the site if it’s not addressed immediately. Keep an eye on your web pages and analytical data as this will show you if visitors are experiencing this problem.

Keep your thumb on the pulse of the website and make sure it’s always active – even if you’re not.

Yes, 403 errors in WordPress can be confusing. I hope this article was able to show you some techniques to use to help you rid your website of these types of errors.

If you are still having trouble after trying all the methods above, then contact your host and see if they can help you.

What kinds of errors plague your website? What kind of tools do you have readily available to fix these kinds of problems?

Deja un comentario

Tu dirección de correo electrónico no será publicada.

Este sitio usa Akismet para reducir el spam. Aprende cómo se procesan los datos de tus comentarios.

Copy link