403 Forbidden

403, forbidden, permissions, index file, modsecurity, ip block · 0 found this helpful

A 403 means the server understood the request but refuses to serve it. Something is blocking access. The cause is usually permissions, a missing index file, or a firewall rule.

What you see

Forbidden
You don't have permission to access this resource.

Some pages show "403 Forbidden" with a plain background, or a firewall page with a block message.

Symptom, cause, fix

Symptom Likely cause Fix
Home page returns 403 on a new site No index.html or index.php in the folder Section 1
One image or file returns 403 Permissions are too strict Section 2
A whole folder returns 403 Folder permissions, or an .htaccess deny rule Sections 2 and 3
403 only when you save a form or post ModSecurity matched content Section 4
403 for you only. Others can load it Your IP is blocked Section 5
403 only for a certain country or bot A deny rule or the firewall Section 3
Login box then 403 Folder password user is missing or wrong Section 6

1. Missing index file

If the folder has no index.html, index.php, or similar, the server won't list files and returns 403.

  1. Open Account → Hosting → your site → Files → File manager and go to the site folder.
  2. Make sure there's an index file with the right name in lowercase. See Default index files and directory listings.
  3. Upload your site files if the folder is empty. See Upload your website files.

2. Permissions

Item Right setting
Folders 755
Files 644
wp-config.php 600 or 640

Fix in the file manager: select the item and open Permissions. See Fix file and folder permissions for commands that fix many files at once. Also check that the owner is your hosting account. Files uploaded by a different user, or restored the wrong way, can have the wrong owner.

3. .htaccess rules

Look for Deny from, Require all denied, or Require ip lines.

# This blocks everyone
Require all denied

Remove or correct the rule. If you aren't sure, rename .htaccess to .htaccess-off and reload. See .htaccess basics with examples.

4. ModSecurity

If the 403 shows only when you submit something, a firewall rule may be matching your content. Read ModSecurity web application firewall. Contact us with the time, the page, and what you did.

5. Your IP is blocked

Too many failed logins, or a block you set yourself, can lock you out.

  1. Check from mobile data. If the site opens there, your IP is blocked.
  2. Check Account → Hosting → your site → Security → Blocked addresses for your address. See Block visitors by IP address.
  3. See Locked out: your IP was blocked.

6. Password-protected folder

  1. Go to Account → Hosting → your site → Files → Folder and server rules.
  2. Check whether the folder is password protected, and that the user exists. See Password-protect a folder.

7. Hotlink protection

If images show 403 on another site but load on yours, hotlink protection is doing its job. To allow a site, add it under Account → Hosting → your site → Files → Folder and server rules. See Stop other sites using your images.

Read the log

The error log says why. A permissions problem looks like this.

[Mon Nov 30 11:05:22.118 2026] [core:error] [client 203.0.113.25]
AH00035: access to /images/menu.jpg denied (filesystem path
'/home/nsbakery/public_html/images/menu.jpg') because search permissions
are missing on a component of the path

On our LiteSpeed servers each line starts differently, with the date first, for example 2026-11-30 10:12:04.512 [ERROR] [12345] [T0] [203.0.113.25:51234#APVH_example.ca:443]. The file path and the message after the brackets read the same way. This one says a folder in the path (images) lacks execute permission. Set it to 755. See Read your site's error log.

Still stuck?

Contact us with the address you visited, the time, and your IP address. See What to include when you ask for help.

Was this helpful?

Still stuck? Ask us and we'll walk you through it.