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

General

Maintaining User Engagement

Engage users and unlock infinite possibilities together Share This Post Have you explored the potential of using email to proactively connect with your users and

How to fix 401 bad request error?
WordPress

How to fix 401 bad request error?

What is ‘401 Bad Request’ and How to Resolve it? Share This Post 401 Bad Request “401 Bad Request Errors” are known as HTTP client

How to fix 403 Forbidden Error?
WordPress

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

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!