When visiting your website or trying to access the admin panel, you may encounter the 403 Forbidden error. This error indicates that the server received your request but denied access due to insufficient permissions. In other words, the file or directory exists, but you are not authorized to view it. For hosting users, this is a common error, but the good news is that it can usually be fixed with the right steps.
The 403 Forbidden error is an HTTP status code. Your browser requests access to a resource, but the server responds with an “unauthorized access” message. This typically happens in cases such as:
Incorrect file or folder permissions
Misconfigured or corrupted .htaccess file
Wrong redirects
IP restrictions
Missing index files (e.g., index.php
or index.html
)
Every file and folder on the server has permissions.
Incorrect permissions may block browser access.
Recommended permissions:
Folders: 755
Files: 644
Wrong rules in the .htaccess file may block access.
Especially incorrect redirects or security settings may trigger the error.
If the root directory lacks an index.php
or index.html
file, the server won’t know which file to load and may return a 403 error.
For security reasons, some IP addresses may be blocked.
If there are IP restrictions on the server, you may see this error.
Security plugins (e.g., WordPress security plugins) or firewalls may deny access due to incorrect settings.
Use cPanel, Plesk, or FTP to verify permissions.
Set folders to 755
and files to 644
.
Look for incorrect rules.
If unsure, temporarily rename the .htaccess file and test your site.
If the site works, create a new .htaccess file or fix the rules.
Ensure the root directory has an index.php
or index.html
file.
If missing, add one.
Review IP blocking settings in cPanel or security settings.
If your own IP is blocked, remove it from the list.
If you use WordPress, disable security plugins temporarily.
If the site works, review the plugin settings.
If the above steps don’t work, contact your hosting provider’s support team.
Check server logs for more details on the error.
If you use a CDN like Cloudflare, review its security settings.
The 403 Forbidden error may seem frustrating at first, but it usually occurs due to simple issues like incorrect permissions, a misconfigured .htaccess file, or a missing index file. By following the right steps, you can fix this error easily.
If the problem persists, you can create a support ticket via the Hostider client panel to get help from our expert team.