HTTP Error 403 - Forbidden

What is 403 - Forbidden error?

 
Errors are the representatives of the something fishy with the environment that you are dealing with. The errors are assigned to the numbers that tell precisely what could be the possible error. One of them is the 403-forbidden error.

The 403 forbidden error is the status of the HTTP that tells that you will not be allowed to access the page you are trying to log on for some of the other reasons. This type of error can occur in any type of hosting services.
 
The 403 errors are almost always caused by issues where you are trying to access that your website doesn't have write access or bad permission.

Here are examples of some these errors that are commonly thrown:

  • 403 Forbidden

  • Forbidden: You don't have permission to access [directory] on this server

  • HTTP Error 403 – Forbidden

  • 403 forbidden request forbidden by administrative rules

  • Access Denied You don't have permission to access


Cause of 403 Forbidden Errors and How to resolve forbidden error

There are several common causes for this error. Here they are listed from most likely.
No Index Page.
The homepage of your website must be called index.PHP, index.html.
To resolve the issue, upload your website homepage index file to your respective document root folder (public_html or httpdocs)

 

1) Rename your home.html file to index.html or index.php
index.html or index.php is a must file in your home directory when you want to run your web application. When none of these are presents it shows this error commonly.  Renaming your home.html to index.html or home.php to index.php, for example, can rectify this issue.

2) Set a redirection to your real home page by using a .htaccess file.
    The .htacess file is meant to give the proper direction for all the necessary files on the server. If you failed to do the same you may experience 403 forbidden error. Redirect the proper file to avoid this issue.

3) Set a default homepage in your .htaccess file.
    In the .htacess file, you will have the provision to set a page as the default page. so whenever you load it the default page will appear. Doing this also can avoid the forbidden error.

In the shared hosting service, you will not be privileged with the root access. you won't be able to do the above-explained operations on your own. you need to contact customer care for the resolution of this.   

Permissions and ownership errors.

A 403 Forbidden error is mainly caused by invalid ownership or permissions on your web files and folders.


Permissions:

The Unix level has three levels of permission: owner, group, and other. The "other" covers everybody who has access to the system and who isn't the owner or a member of the group.


Rule for correct permissions:

Files: 644

Folders: 755

Dynamic Content: 700


Additional Info:

7 = Read + Write + Execute

6 = Read + Write

5 = Read + Execute

4 = Read

3 = Write + Execute

2 = Write

1 = Execute

0 = All access denied

 

Once you get the above error you can try fixing it by yourself by the methods explained above. The HostingRaja servers are designed to be more reliable and such errors occur sometime due to machine or human errors. The HostingRaja team are excelled in providing the quick solution for the clients issues and queries.

They help you analyse the error and fix it as soon as possible. HostingRaja support team are honored with numbers of awards for fixing the issues quickly and permanently.