Knowledge Base

How to Fix a 403 Forbidden Error

This article will show you how to fix a 403 Forbidden error on your website.

A 403 means the server found what you asked for but refused to serve it. That refusal almost always comes from file permissions, a missing index file, or a rule in .htaccess.


1. Check the File Permissions

Files should normally be 644 and folders 755. Anything more restrictive stops the web server reading them. You can change permissions in your control panel's file manager.

2. Look for a Missing Index File

If the error appears on a folder rather than a single page, the server may have nothing to show. Make sure the folder contains index.html or index.php. If you genuinely want the file list shown, directory listing has to be enabled deliberately.

3. Review Your .htaccess Rules

A deny rule, an IP restriction or a password-protection block will produce a 403 for anyone it applies to. Rename .htaccess to .htaccess-off and reload the page. If the error clears, the cause is in that file.

4. Check Whether Your Own IP Is Blocked

Security tools block addresses after repeated failed logins, and it is easy to lock yourself out. Try the site on mobile data. If it loads there but not on your home connection, your IP is the problem.

5. Check the Ownership of the Files

Files uploaded as the wrong user, often after a restore or a manual copy, can be unreadable to the web server even with correct permissions. Your host can confirm and correct the ownership.


Next: How to View Error Logs in cPanel shows the log entry behind the error, which usually names the exact file.

Please rate this article to help us improve our Knowledge Base.

0 0