The HTTP error 403 Forbidden is a basic term in web hosting and it means that access to the particular file or folder what you are browsing in your Internet browser showing access has been denied because of misconfiguration. To check whether your access is blocked or not try a web proxy to hide your identity. Most web hosting control panels give access to check the webserver’s error at troubleshooting by providing such tools in cPanel, it is called Error log. It is used to check the manual for your webserver if you don’t have a control panel.
In this error log you will see a list of error messages generated by your website. The details error list provides a complete detailed information about each error including the date and time of the error, What kind of error the client is receiving?, description of the error and information about which particular folder or file on your account is generating the error.
Lets see some examples of the most common errors and how to fix them:
[Mon March 14 01:46:56 2009] [error] [client 192.0.0.051] client denied by server configuration: /home/user/public_html/index.php
So you can get the above error message when the access from the specific IP addresses to certain files and folders from your website prohibited by the rule into .htaccess file. If you do not want to deny access to this IP, make sure there is no .htaccess file has such rules. To check whether the following rules to your website, you must open the file in the folder .htaccess that generates the error and look for a line like.:
deny from 192.0.0.051
the above rule denies access from a particular IP, in this case 192.0.0.051 deny from all this rule denies access from all IPs. If you find such a line then delete it and please save the changes what you have been made. After that the client with this particular IP should be able to access the files in the folder and will not receive the “403 forbidden” error.
[Mon March 14 02:13:24 2007] [error] [client 192.0.0.051] Directory index forbidden by rule: /home/user/public_html/
This kind of error message will comes up when a user tries to open a directory but it has no index file and at the same time if the Indexes option for this directory is turned off. To avoid this you should have to make sure that .htaccess file within the directory which displays this error does not contain “Options – Indexes”.
If you cannot find the reason for the 403 error yourself , you may ask your host for assistance.