403 Forbidden Error

How to fix 403 Forbidden Error?

Share This Post

What is 403 forbidden error?

Similar to many other WordPress issues, the 403 Forbidden error is an HTTP status code that a web server uses to communicate with your web browser. “Access to that resource is forbidden.” This message is displayed when a user tries to access a resource they are not authorized to view.

solutions

Check Security Plugins

WordPress security plugins with improper security settings are the main reason for the 403 Forbidden error. Many WordPress security plugins have the ability to ban an IP address (or a group of IP addresses) if they think it is harmful. You should first temporarily deactivate every WordPress plugin. This applies to any security plugins you have set up on your website. If your problem is resolved then any plugins on your website must be the cause. Activating each plugin one at a time until you can recreate the 403 forbidden error will help you identify which plugin was the reason for the error.

Fix Error by corrupt .htaccess file

So what you need to do is to copy the .htaccess code from the WordPress website and edit it in the .htaccess file.

# BEGIN WordPress

RewriteEngine On

RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

RewriteBase /

RewriteRule ^index\.php$ – [L]

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule . /index.php [L]

# END WordPress

People usually use this code for basic WordPress; you can find codes according to your site type here.

 Every WordPress installation will include a .htaccess file that you can access through your hosting control panel or FTP client. When you host multiple sites, your web server will also have multiple .htaccess files.

By pasting above code into the file you will be able to remove errors from your site.

Fix error by file permissions in WordPress

Simply use an FTP programme to connect to your WordPress website. Go to the root folder where all of your WordPress files are present.

Click to select a folder, then use the menu that appears when you right-click to choose File Permissions.

A file permissions dialogue box like the one below will appear in your FTP client:

The file permissions for every folder on your WordPress website should be 744 or 755.

The file permissions for every file on your WordPress website should be 644 or 640.

For the root folder, you can choose between the 744 and 755 file permissions. Check the box next to “Recurse into subdirectories,” and then select “Apply to directories only.”

As soon as you click the OK button, your FTP client will begin changing the file permissions for all of the selected files. Your website should now be accessible without receiving a 403 Forbidden message.

Subscribe To Our Newsletter

Get updates and learn from the best

More To Explore

Online Courses
General

7 Reasons to create online course

We innovate learning processes, Online courses that rocks Share This Post 7 Reasons to create Online Course Do you know the benefits of creating an

WordPress Returning
WordPress

WordPress Posts Returning 404 Error

Troubleshooting Tips for WordPress Posts Returning 404 Errors Share This Post WordPress is a strong content management system, but a  little change occasionally makes your

Do You Want To know about our services?

drop us a line and keep in touch

small_c_popup-300x296

Let’s Talk To Us With Your Concerns

    Once you send the details, we will be shortly back to you. Thanks!

    Use coupon code "FSBFCM2023" to get 30% discount on any plugin purchase!
    small_c_popup-300x296

    Become a valuable part of Team LDninjas

    small_c_popup-300x296

    Be updated with new release by LDninjas!