[Resolved] 403 forbidden Access to this resource on the server is denied!
When tried to login to WordPress Admin panel (for eg: http://example.com/wp-admin), i got message:
Access to this resource on the server is denied! Powered By LiteSpeed Web Server
LiteSpeed Technologies is not responsible for administration and contents of this web site!
What Causes 403 Forbidden Error in WordPress?
The most common cause could be a corrupt .htaccess file or incorrect file permissions on your server. Another possible cause for the 403 Forbidden error in WordPress is due to poorly configured security plugins. Many WordPress security plugins can block an IP address (or a whole range of IP addresses) if they believe them to be malicious.
There are different scenarios when you can see this error. For example:
I. 403 Forbidden – Access denied on wp-admin or WordPress login page.
II. 403 Forbidden – during WordPress install.
III. 403 Forbidden error when visiting any page on your WordPress site.
IV. It is also possible that you only get to see ‘Access Denied’ instead of full 403 Forbidden status.
V. You may also see ‘Access to yourdomain.com was denied. You don’t have authorization to view this page.’
1. Fix 403 Forbidden Error Caused by Corrupt .htaccess File
Just delete and create a new .htaccess file and add following lines of code to .htaccess (Please note that if you have already set any custom rules for the site on htaccess file, please add the same also).
# BEGIN WordPress
# END WordPress
2. Fixing 403 Forbidden Error Caused by a WordPress Plugin
First thing you need to do is to temporarily deactivate all WordPress plugins. This includes any security plugins that you may have installed on your site.If this resolves your problem, then this means one of the plugins on your website was causing this error.You can figure out which plugin was causing the error by activating all your plugins one at a time until you are able to reproduce the 403 forbidden error.
Try accessing your website. If 403 forbidden error is resolved, then this means that your .htaccess file was corrupt.You can generate a fresh .htaccess file by logging into your WordPress admin area and going to Settings » Permalinks page.
Simply click on the Save Changes button at the bottom of the page and WordPress will generate a fresh .htaccess file.
3.Fix 403 Forbidden Error Caused by File Permissions in WordPress
All files stored on your website have file permissions. These file permissions control who can access files and folders on your website.Incorrect file permissions can cause 403 forbidden error. It makes your web server thinks that you do not have permission to access those files.If the above two solutions do not solve the 403 forbidden error on your site, then incorrect file permissions can be the most likely cause.Changing file permissions yourself can have serious consequences. If you do not feel confident doing it yourself, you can ask your WordPress hosting provider to check your website for correct file permissions.
That’s it. Hope this post helped you fix the 403 forbidden error in WordPress 🙂