Have you ever encountered the "403 Forbidden" error on your WordPress website ?
It is one of the most dreaded mistakes a beginner can encounter. But there are also other errors such as " the 500 Internal Server error " or " the 503 error of the unavailable service That you can solve by consulting these different links.
But in the meantime in this article, we'll show you how to easily fix the error " On WordPress.
Resolving "403 Forbiden" error on WordPress
Before doing anything, we recommend that you create a full backup of your website.
If you are using a WordPress autosave plugin, make sure you have access to the latest backup before moving forward.
1. Fixed the "403 Forbidden" error caused by a WordPress plugin
The first thing you need to do is temporarily disable all WordPress plugins. This includes any security plugins you have installed on your website.
If you do not have one installed consult the 10 WordPress plugins to strengthen the security of your blog
If your issue is resolved, then it means that one of the plugins on your website was causing this error. You can determine which plugin was causing the error by activating all your plugins one after the other until the error recurs.
2. Fix "403 Forbidden" error caused by corrupted .htaccess file
Often times, the 403 error is caused by a file ..htaccess corrupted on your WordPress website. Repairing this file is quite easy. First you need to to connect to your website using an FTP client or file manager in cPanel.
We also recommend that you consult our 5 htaccess tips to improve the security of a WordPress blog
That said, let's continue our tutorial
Then locate the file .htaccess in the root folder of your WordPress website. You must download the file .htaccess on your computer in order to have a new backup. After that, you need to delete the file from your server.
Try once more to access your website.
If the "403 Forbidden" error is resolved, it means that your file .htaccess was indeed corrupt. You can generate a new file .htaccess by logging into your WordPress admin area and navigate to the following location โ Settings> Permalinks"
Just click on the button Save settings at the bottom of the page and WordPress will generate a new file .htaccess.
3. Fixed "403 Forbidden" error caused by file permissions
All files stored on your website have file permissions. These file permissions control access to files and folders on your website. Incorrect permissions can cause the 403 error. In fact, they trick your web server into thinking that you don't have permission to access these files.
If the above two solutions did not resolve the 403 error on your website, then it is likely that incorrect permissions are the cause. You can ask your WordPress hosting provider to verify file permissions. Some hosts can in principle solve this problem for you.
You may also need to know How to optimize a database with one click on WordPress for further.
Changing file permissions on your own can have serious consequences. If you don't feel comfortable doing it on your own, ask a friend for help or contact our customer service.
However, if you want to do it yourself, here's how to check your file permissions. Log in to your WordPress website using a FTP client. Navigate to the root folder that contains all of your WordPress files.
Right click on the folder, then select " File Permissionsโฆ โ- File permissions - in the menu. Your FTP client will show you a dialog box with file permissions as on this image:
- All folders on your WordPress website must have 744 or 755 file authorization.
- All files on your WordPress website must have a file permission from 644 or 640.
You will be able to set the permission of the file in the root folder to 744 or 755. Check the box next to ยซ Recurse into subdirectoriesยซ , then check the option " apply to directories only"
Click the OK button. Your FTP client will start setting permissions to all subdirectories in this folder.
Once it's done, you need to repeat the process for all files. This time you are going to use the file permission of 644 or 640 and of course select the options ยซ Recurse into subdirectoriesยซ et ยซ apply to directories only ".
Discover What You Need to Know About WordPress Caching
Click on the OK button and your FTP client will start setting up file permissions for all selected files. Try to access your website once more, the 403 error should be gone by now.
Remember that if the problem persists, you can always contact the customer service of your WordPress theme or your host.
To continue to secure your blog and optimize it, we also offer some WordPress plugins premium that will ensure the security of the latter
1. Security Ninja PRO
Security Ninja PRO is another WordPress Plugin premium that will help you improve your website security perfectly. It offers a plethora of options and features that will allow you to take charge of every part of your website's security.
Its features are: more than 40 security tests available, a complete scan of your website in order to detect all vulnerabilities and security flaws, the integration of a malware scanner, the backup of your website activities, the planning of different scans and much more
Download | Demo | Web hosting
2. Hide My WP
Hide My WP is an amazing WordPress protection and security plugin. It effectively allows you to hide the fact that you are using WordPress on your website, without modifying the structure of any file or folder.
Its main features are: blocking direct access to php files, changing the permalink, deleting WordPress meta info on headers and feeds, cleaning up unnecessary menu classes and more.
Download | Demo | Web hosting
Other recommended resources
Also discover these few links which will allow you to solve other similar errors
- How To Fix 502 Bad Gateway Error On WordPress
- 5 WordPress plugins to better manage errors 404
- How to fix an 504 error on your WordPress site
Conclusion
We hope this article has helped you resolve the error " On WordPress. If you have comments, or suggestions, please let us know in the dedicated section.
We also invite you to consult our resources if you are a beginner blogger and above all, do not hesitate to share this article on your different social networks.
...
Hello,
I have a 403 error when I try to reach a pdf hosted on my site by its link.
I performed all the tricks.
I'm on the removal of the htaccess. permission for deletion is denied
When I want to modify the rights on the files, the permission is refused
How to proceed ?
Thank you
Hi,
Have you tried disabling all plugins?
Hello,
Recently on our site, we have a 403 error problem on our downloadable woocommerce filesโฆ I saw this part that interested me well "All files on your WordPress site must have a file authorization of 644 or 640. โDo woocommerce downloadable files need to have this file permission, since they are paid files?
All our other files are working wonderfully though ...
Thank you very much for your answer !
Have a good day,
Emilie
Hello,
YES, in principle.
Hello,
I implore your help!
I am a beginner in the field: I created a wordpress.com site.
Since this morning, I have not been able to access my dashboard, when I click on โdashboardโ I am sent back to the home page of my site.
Moreover, when I click on "extensions" I have an error that displays "403 Forbidden
Permission denied. Our sentries tell us that you should not be here. "
I don't know anything about FTP, PHP and other acronymsโฆ I understand that some go through wordpress.org and downloaded wordpress in ZIP file in order to then be able to code their site themselves and have access to the coding of their siteโฆ from my sideโฆ it is not. I'm just using the wordpress.com dashboard.
The only manipulation I carried out this morning before the incident: I was snooping around in "Settings" => Traffic => Checking service for your site. I followed the procedure. and Sinceโฆ I can no longer access my dashboardโฆ
Can you help me please?
Thank you in advance !
Thomas
Hello Thomas,
Have you contacted the wordpress.com team? Because it is the Hosted version of WordPress.
Hello to my alarm clock this morning I have no access to my site see the error messages
Warning: fileperms (): stat failed for /var/home/seniranauto/public_html/index.php in /var/home/seniranauto/public_html/wp-admin/includes/file.php on line 1423
Warning: Cannot modify header information - headers already sent by (output started at /var/home/seniranauto/public_html/wp-admin/includes/file.php:1423) in / var / home / seniranauto / public_html / wp-login. php on line 423
Warning: Cannot modify header information - headers already sent by (output started at /var/home/seniranauto/public_html/wp-admin/includes/file.php:1423) in / var / home / seniranauto / public_html / wp-login. php on line 436
Warning: Cannot modify header information - headers already sent by (output started at /var/home/seniranauto/public_html/wp-admin/includes/file.php:1423) in / var / home / seniranauto / public_html / wp-includes / pluggable.php on line 920
Warning: Cannot modify header information - headers already sent by (output started at /var/home/seniranauto/public_html/wp-admin/includes/file.php:1423) in / var / home / seniranauto / public_html / wp-includes / pluggable.php on line 921
Warning: Cannot modify header information - headers already sent by (output started at /var/home/seniranauto/public_html/wp-admin/includes/file.php:1423) in / var / home / seniranauto / public_html / wp-includes / pluggable.php on line 922
Powered by WordPress
Hello,
Try to manually disable all plugins via FTP by changing the folder names. it should work.
Thanks for the article. I have a 403 error following an https migration, any idea?
Bonjour.
Can you share a capture? Thank you