Error 403 forbidden on Virtual Hosting.

Causes of 403 forbidden error on shared hosting.

If your website is hosted on shared hosting and you encounter a 403 error when trying to access a page, it may be caused by a missing index file, incorrect file permissions, or the hosting security system. In this article, we’ll go over the most common reasons for this error and how to fix them.


Missing index file

Every website directory should have an index file. By default, this is index.html, index.htm, or index.php. If the index file is missing or not readable, directory listing is blocked for security reasons.

Add an empty file named index.html to your website’s root directory and refresh the page to see if the issue is resolved.


Incorrect file and folder permissions

On shared hosting, proper permissions should be set as follows:

  • Files644
  • Folders755

Check the permissions and adjust them if necessary for the files and folders in your website’s root directory.


Enabling directory listing

If you want to allow directory listing without an index file, you can add the following line to your .htaccess file:

Options +Indexes

Place this line at the beginning of the file.


Hosting security system

This error can also occur if the Imunify360 security system has moved files to quarantine.

Check the quarantine and, if needed, add the moved files to the list of excluded items.


Help

If you have checked all the above and the error still persists, please contact our support team via the ticket system. We’ll help you identify and resolve the issue.

Need help?Our engineers will help you free of charge with any question in minutesContact us