Error guide / 403 Forbidden
How to fix a 403 Forbidden error
A server answers 403 Forbidden when it understood the request and refuses to serve it. The page exists, but access to it is closed. The usual reasons are wrong file permissions, a rule in .htaccess or a block on the visitor's IP address.
Check your site
What causes it
The cause is almost always on the site side: a deny rule in the server config, incorrect file or folder permissions, an empty root folder with no index file, or a security rule that caught the wrong visitors.
How to fix it
- Check that a main file (index.php or index.html) exists in your site root and the folder is not empty.
- Set permissions to 644 for files and 755 for folders (in cPanel use the File Manager).
- Open .htaccess and remove any stray Deny from or Require all denied rules.
- If only you are blocked, check whether your IP landed in a deny list (ModSecurity or firewall).
- Make sure index files are enabled and directory listing is set the way the page needs it.
- If nothing helps, contact your hosting support and ask them to check the server logs.