Fix "403 Forbidden" on Your Website
403 ForbiddenYou don't have permission to accessAccess deniedA 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 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.
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.
Related articles
Fix "500 Internal Server Error" on Your Website
A 500 error on your site? The usual causes — .htaccess, file permissions, PHP — and how to fix them.
Read fix Web HostingHow to Point a Domain to Your Server (DNS A Record)
How to point a domain at your server with an A record — and why it doesn't work instantly.
Read fix Web HostingFix Email Going to Spam (SPF, DKIM & DMARC Explained)
Mail landing in spam? Set SPF, DKIM and DMARC correctly so your email reaches the inbox.
Read fix