Web Hosting

Fix "403 Forbidden" on Your Website

403 ForbiddenYou don't have permission to accessAccess denied
5 min read Updated 12 June 2026 ESAGAMES Team

A 403 means the server understood the request but refuses to serve it. The cause is almost always permissions, an .htaccess rule, or a missing index file. Here's how to fix it.

Cause 1: wrong file/folder permissions

Files the web server can't read return a 403. Reset web permissions — folders 755, files 644:

find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;

Cause 2: an .htaccess rule

A Deny/Require rule or a broken rewrite blocks access. Rename .htaccess to test; if the 403 clears, the rule was the cause — regenerate a clean one.

Cause 3: no index file

If a folder has no index.html/index.php and directory listing is off, the server returns 403 instead of showing the files. Add an index file (or enable listing if you intend to show it).

Cause 4: an IP / security block

A firewall, ModSecurity rule or an IP deny-list can 403 specific visitors. Check the server's error log — it names the rule or IP that triggered the block.

The log names the cause

The web server error log says exactly why a 403 happened — a permission, a rewrite, ModSecurity, or an IP rule. Read it before guessing.

403 = refused, not missing. Check permissions (755/644), test .htaccess, add an index file, and read the error log.

Hassle-free web hosting

Our web hosting sets sane permissions and a clean DirectAdmin panel on NVMe, with DDoS protection included.

See web hosting
FAQ

Frequently asked questions

What causes a 403 Forbidden error?

The server refuses to serve the request — usually wrong file/folder permissions, a blocking .htaccess rule, a missing index file with directory listing off, or an IP/security (ModSecurity) block.

How do I fix a 403 on my website?

Reset permissions to 755 for folders and 644 for files, test by renaming .htaccess, make sure the folder has an index file, and check the error log for a ModSecurity or IP block.

Why do I get 403 on just one folder?

That folder likely has no index file (and listing is disabled), or its permissions are wrong. Add an index file or fix the folder's permissions to 755.

Knowledge base

Related articles

Skip the troubleshooting

Managed, protected hosting in Frankfurt — we handle the Linux, the network and the DDoS so you don't have to.

Payments Secure checkout with cards, banking apps and digital wallets.

Choose the payment flow that fits your stack and region without leaving the platform.

Pay by Zen Visa Mastercard Paysafecard PaysafeCash Skrill Trustly Bancontact UnionPay iDeal WebMoney