HostGator.com » Support Portal

403 Forbidden or No Permission to Access

A 403 Forbidden error means that you do not have permission to view the requested file or resource. While sometimes this is intentional, other times it is due to misconfigured permissions.

The top reasons for this error are permissions or .htaccess error.

Permissions

The 403 Forbidden error means that your file has bad permissions. Directories and folders must be 755. Executable scripts within the cgi-bin folder must be 755. Images, media, and text files like HTML should be 755 or 644.

See our article on How to change permissions (chmod) of a file for information on how to change file permissions.

If your permissions were changed to 000, please email security@hostgator.com and an administrator will help resolve this.
Only a security admin can fix this, as it is likely a TOS or abuse issue.

Hidden files (dot files)

If you see "client denied by server configuration" in your Error Logs, then this usually means bad file permissions, but could also mean that the visitor is trying to look at a hidden file, like the .htaccess file. You cannot look at that file in your browser, or any file name that starts with a dot.

e.g. http://domain.com/.htaccess will always result in a 403 error.

Other possibilities

The account may have IP Deny rules. Check in cPanel and make sure you are not blocking your own connecting IP.

You may have changed the Index Manager to No Indexing. This will cause a 403 error if their is no correct index page to load.

The error could be caused by our mod_security rules. Please contact us for further help.


Article Comments

Ken Kovar
Helpful tip but the "Getting started wizard" in cPanel needs to be updated to make it clear that permissions in subdirectories in public_html should be set to 755 to avoid the 403 error.

HostGator
I will check that out and report it to cPanel.

Ali Zaib Khan
Thanks Allot.. Helpful.. :) Thanks again..

HostGator
Thank you for your comments. Just a quick reminder that the comments on this page are not monitored by technical support staff, and that for support issues, it is best to contact us by live chat, phone or email so we can assist you right away.

Although comments are not monitored by technical support staff, they are moderated and read by technical writers. Comments will need to be approved by a moderator before appearing.

Our technical writers do read the comments periodically for the purposes of updating the articles, and do appreciate your feedback, suggestions and corrections to the articles themselves, as well as any suggestions or tips for readers of this article. However, support questions posted here are not guaranteed to be replied to in a timely manner or at all. For support issues, it is best to contact our support staff instead by live chat, email or phone.



Your comments help us keep the knowledge base updated. This is not a medium for support. If you have questions or need help, please contact us via email, phone or live chat for fast assistance.

Post Comment