Skip to content

About the '403 Forbidden' error message

A 403 Forbidden error occurs when a web server denies access to a requested resource. On ruachost.com, this typically means that permissions or configuration settings are preventing visitors from viewing a file or directory.

  • Missing index file: No index.html or index.php exists in the directory.
  • Incorrect file permissions: The .htaccess file or public_html directory has restrictive permissions.
  • Directory permissions misconfigured: The directory may be set to 644 instead of 755.
  • Access restrictions in .htaccess: Rules may block visitors from certain files or directories.
  • IP or country blocking: Access may be restricted based on visitor location.

Ensure your site’s root directory contains an index file:

  • index.html
  • index.php

Without one, Apache will deny access.

  • .htaccess should be set to:

    Terminal window
    chmod 644 ~/public_html/.htaccess
  • public_html directory should be set to:

    Terminal window
    chmod 755 ~/public_html
  • Look for Deny from all or restrictive rules.
  • Remove or adjust them if they block legitimate visitors.
  • Use cPanel → Metrics → Errors or SSH to view Apache error logs.
  • Logs will show the exact reason for the 403 error.
  • Clear browser cache and cookies.
  • Retry accessing the site.
  • If using a CDN (like Cloudflare), purge cache there as well.