What does 403 Forbidden Error or Access Denied error mean?

403 Forbidden Error means that your request to accessing a file or resource is being denied by the web server. Mostly this error is caused due to mis-configured permissions or .htaccess file, other times it could be caused by our mod_security rules as well.

Check the error log available from cPanel to help you determine the cause of the error.

If your error log shows "client denied by server configuration", this usually means that your script/file/folder has invalid permissions or the visitor is trying to look at hidden files such as .htaccess file (any file name that starts with a dot. are not accessible on the web)

CHMOD Permissions 
If the error is occurring due to permissions, make sure all Directories and folders are set to 755 permissions. Scripts within the cgi-bin folder should be 755 permission. Images, media, and text files like HTML should be 644. PHP scripts should be 644 as well.

.htaccess misconfiguration

Make sure all your mod_rewrite values are correct, there are no typos or any misconfiguration.

Other possibilities could include blocked IP, make sure you are not blocking the IP from cPanel's IP Deny Manager. You could have also changed the Index Manager to No Indexing from cPanel. This will lead to a 403 error if there is no correct index page to load.


If the error is being caused by mod_security, simply submit a support ticket for further help.

  • 32 Users Found This Useful
Was this answer helpful?

Related Articles

How to clear the local DNS cache in Windows?

You can flush your local DNS cache in Windows by following these easy steps: Open Start menu...

How can I protect my Website From Hackers?

There are several important tips you should always follow to keep your account as secure as...

php error: Allowed memory size of x bytes exhausted

If you are getting an error like "Allowed memory size of... in file...

How to create a user-friendly URL using .htaccess?

If your website is using long URL like example.com/files/folder/sitemap.html, you can change it...

How to fix failed to retrieve directory listing error in FileZilla FTP

When using FileZilla to connect to your FTP if you encounter an error like this: Status:...