Fixing 403 Forbidden errors
Ce contenu n’est pas encore disponible dans votre langue.
403 Forbidden (“You don’t have permission to access this resource”) means the server found the page but isn’t allowed to show it. Check these causes in order.
1. There’s no home page file
Section titled “1. There’s no home page file”If you open your domain and see 403, your website’s folder may have no index file.
- In cPanel, open File Manager and go to your website’s folder:
public_htmlfor your main domain, or the addon domain’s own folder. - Check there’s a file called
index.phporindex.html.
If your files are inside a subfolder (for example public_html/mysite/), move them up into public_html. See Moving a website from a subfolder to the main domain.
2. File or folder permissions are wrong
Section titled “2. File or folder permissions are wrong”Files and folders need the right permissions for the server to read them:
| Type | Permission |
|---|---|
| Folders | 755 |
| Files | 644 |
wp-config.php and other config files |
640 or 600 also work |
In File Manager, right-click a file or folder, choose Change Permissions, and set the right number. Never use 777: the server blocks files and folders that anyone can write to.
3. A rule in .htaccess blocks access
Section titled “3. A rule in .htaccess blocks access”- In File Manager, click Settings and tick Show Hidden Files.
- Open
.htaccessin your website’s folder and look for lines such asDeny from all,Require all deniedor IP address rules. - To test, rename
.htaccessto.htaccess-oldand reload your site. If it works, the problem is in that file.
For WordPress, create a fresh .htaccess by going to Settings → Permalinks in your dashboard and clicking Save Changes. Then add back any rules you need.
Also check cPanel’s Directory Privacy and IP Blocker, which can block visitors.
4. A security rule blocked you
Section titled “4. A security rule blocked you”If the 403 appears only when you do something, such as save a page, submit a form or log in, a security rule (ModSecurity or Imunify360) may have blocked it as suspicious.
- Wait a few minutes and try again.
- If you entered your password wrongly many times, your IP address may be blocked for a while.
- Open a support ticket with your IP address (search “what is my IP”), the page address and the time it happened. We’ll check the logs and unblock you if it was a false alarm.
5. A plugin is blocking you
Section titled “5. A plugin is blocking you”WordPress security plugins such as Wordfence can block countries, IP addresses or logins. Turn the plugin off by renaming its folder in wp-content/plugins/, then reload the page.
Still seeing 403?
Section titled “Still seeing 403?”Open a support ticket with the page address and what you were doing when the error appeared.
Related articles
Section titled “Related articles”Cette page vous a-t-elle aidé ?
Merci pour votre retour.