Guides › HTML / PHP sites › Site down or error screens

403 Forbidden on a Specific Folder or File: Permissions and Rules

A 403 on one folder or file usually means wrong permissions or a blocking rule.

Reference guide. This guide is written from established practice and the official documentation of the tools involved. We have not yet tested every step on a live demo site. Back up your site before you change anything.
Site down or error page

A 403 Forbidden on one folder or file, while the rest of the site works, means the server refuses that item. The cause is nearly always permissions, ownership, or a rule that denies access.

1Note exactly what is blocked2Check for a missing index file3Check permissions4Check ownership5Look for deny rules6Check security tools7Test and clear cachesFixed? Test the site. If not, get help.
The steps in order. Work down the list and stop when the problem is solved.

Step 1: Note exactly what is blocked

Illustration for Step 1: Note exactly what is blocked

Write down the full address that shows 403. If only one folder fails, the problem is local to it. If everything fails, look at the main .htaccess file instead.

Step 2: Check for a missing index file

Illustration for Step 2: Check for a missing index file

Open the folder in File Manager. A folder with no index.html or index.php and with directory listing switched off returns 403. Add an index file to see the difference.

Step 3: Check permissions

Illustration for Step 3: Check permissions

Right-click the folder in File Manager and choose Permissions (or Change Permissions). Folders should normally be 755 and files 644. 777 or 000 can both cause 403 on many hosts.

Step 4: Check ownership

Illustration for Step 4: Check ownership

Files uploaded by a different user, or restored from a backup, can belong to the wrong owner. If the hosting panel offers a Fix Permissions or Reset Ownership tool, run it.

Step 5: Look for deny rules

Illustration for Step 5: Look for deny rules

Open .htaccess in that folder and in the parent folders. Lines such as Deny from all, Require all denied or Order deny,allow block everyone. Remove or correct them, saving a copy first.

Step 6: Check security tools

Illustration for Step 6: Check security tools

A firewall, ModSecurity or a security plugin may be blocking the request. Your host's error log or the plugin's blocked-requests list shows the rule that fired.

Step 7: Test and clear caches

Illustration for Step 7: Test and clear caches

Reload with a hard refresh (Ctrl+Shift+R), then check again in a private window.

Good to know

Never set 777 on live files just to get past the error. It makes files writable by everyone on the server and is a common cause of hacked sites.

Still stuck?

If these steps do not solve it, we fix it for you for a flat $99. Full refund if we do not solve it within 7 days.

Related guides

Did this solve it? If not, email hello@sitefixlab.org with the exact error text and we will look into it. Try the problem finder.

Last updated 2026-11-22.