403 Forbidden: how to fix it
Why the server refuses access with a 403 — missing index file, permissions, .htaccess rules or security blocks — and how to fix each one.
On this page
Does this match what you’re seeing?
- The page says 403 Forbidden or ‘You don’t have permission to access this resource’
- The home page is forbidden but files load
- One folder or the login page is forbidden
1. The home page is forbidden: no index file
If public_html has no index.html or index.php, the server refuses to list the folder and returns 403.
- Check that your site’s files are directly in
public_html, not inside a subfolder you uploaded. Where to upload your website: public_html explained - Check the file is named exactly
index.htmlorindex.php(lowercase, notIndex.htmlorindex.htm.html).
2. Permissions
The server must be able to read files and enter folders.
- Folders:
755 - Files:
644
A folder at 700 or a file at 600 returns 403. File permissions explained (644, 755 and why never 777)
3. .htaccess rules
Look for rules like Deny from all, Require all denied, Require ip ... or Options -Indexes combined with no index file. Rename .htaccess to test. Security plugins often write blocking rules here.
4. You’ve been blocked
- Login pages (
wp-login.php,/wp-admin) forbidden after failed attempts: a security plugin or IP rule. Try another network, or disable the plugin by renaming its folder. - Only for some visitors or countries: a firewall or bot-blocking rule in a plugin or
.htaccess. - Behind Cloudflare: a Cloudflare security rule may be responsible; check its firewall events.
5. Password-protected folder
A protected directory whose password file is missing can return 403 instead of a login prompt. Remove and re-add the protection. How to password-protect a folder
Check the error log
The domain’s error log usually states the reason, such as “client denied by server configuration” (a rule) or “Permission denied” (permissions).
Prefer to follow along?
- Upload a website you’ve built
Beginner · 15 min
Common questions
Why do I get 403 Forbidden on wp-admin?
Something is blocking access to the admin folder rather than WordPress rejecting your login. The usual causes are a security plugin’s IP rules, a rule in .htaccess, or file permissions that were changed to something the server will not read.
If a security plugin locked you out, renaming that plugin’s folder over FTP disables it and restores access. If .htaccess is the cause, renaming that file to .htaccess-old tells you within seconds whether it was responsible.
What does a 403 Forbidden error mean?
The server found the page but is refusing to serve it. On shared hosting the usual causes are wrong file permissions, a missing index file in a folder, or a rule in .htaccess blocking access.
This is a general web-hosting explanation, not specific to Traxio.
Spotted something out of date or unclear? Tell us and we’ll fix it.