403 Forbidden in IIS
Fix an IIS 403 Forbidden: read the sub-status in the IIS log (403.1 to 403.504), then fix permissions, SSL, IP restrictions, certificates or directory listing.
In IIS, a 403 Forbidden carries a sub-status that names the exact cause, such as 403.14 for a denied directory listing or 403.503 for an IP address on the deny list. Read the sub-status from the IIS log, then fix that rule: Read or Execute permission, an SSL requirement, IP restrictions, a client certificate or the missing default document.
Where does your site stand?
Four quick questions, then a straight answer.
From your answers, this is quietly costing you traffic and nobody has the hours to chase it. Scaplet finds every affected page, drafts the fixes and tracks how AI answers mention you.
- Free audit in 60 seconds
- Fixes drafted for your review
- ChatGPT, Perplexity, Gemini and AI Overviews tracked
A data platform shipped 46 fixes without a ticket.
This looks handled. Re-check after a redesign, a migration or a big content push; that is when it breaks.
- Re-check after big site changes
- Keep this page for reference
Your site is small and you have the time. Work through the steps on this page, starting with the pages that get the most traffic.
- Follow the steps below
- Top-traffic pages first
- Check again in a month
The sub-status tells you the cause
IIS records the HTTP status code in its log. By default the log directory is %SystemDrive%\inetpub\logs\LogFiles, and IIS creates a new log file daily. The default log fields include HttpStatus and HttpSubStatus, so each 403 line shows both numbers. Browsers on other machines see a generic message because httpErrors defaults to errorMode="DetailedLocalOnly", which returns detailed information only to requests from the local computer.
# Each matching line also carries the sub-status
Get-ChildItem C:\inetpub\logs\LogFiles -Recurse -Filter *.log | Select-String -Pattern " 403 " | Select-Object -Last 10403 sub-status codes and fixes
| Sub-status | Meaning | What to fix |
|---|---|---|
| 403.1 | Execute access forbidden | The appropriate level of Execute permission is not granted |
| 403.2 | Read access forbidden | Grant Read in IIS and confirm a default document exists if you rely on one |
| 403.3 | Write access forbidden | Check IIS permissions and NTFS permissions; both must allow Write |
| 403.4 / 403.5 | SSL required / SSL 128 required | The request used a non-secure channel (or not 128-bit) but the app requires it. Use https, or relax the requirement |
| 403.6 | IP address rejected | The server is set to deny the client's IP address. Review the IP Address and Domain Restrictions rules |
| 403.7 / 403.16 / 403.17 | Client certificate required / untrusted or invalid / expired | The client browser has no valid client certificate, or the server does not trust the one it uses. Install a valid, trusted certificate on the client |
| 403.8 | Site access denied | The server denies requests by the client's DNS name |
| 403.9 | Concurrent connections exceeded | Too many clients are connecting to the server |
| 403.14 | Directory listing denied | No default document is set and directory listing is off. Add a default document, or enable directory browsing on purpose |
| 403.501 / 403.502 | Dynamic IP Restriction limits reached | Too many concurrent requests, or too many requests within the time limit, from one client IP |
| 403.503 / 403.504 | IP address / host name denied | The client IP or host name is on the IP Restriction deny list |
Microsoft's table lists more codes, down to 403.22 for WebDAV requests with infinite depth. It also notes that a custom ISAPI filter or HTTP module can set its own status code, so a code can come from your own extension rather than from IIS itself.
Fix the common ones
directoryBrowse is off (enabled defaults to false), and default documents are on, with names such as Index.htm and Index.html defined server-wide. If your home page is index.php or home.html, add it to the list instead of turning on directory browsing.- 1
Read the sub-status
Find the failing request in the site's log and note the status and sub-status.
- 2
Fix the matching setting
Use the table above. For permissions, check both IIS and NTFS.
- 3
Retest from the same client
A request from another address can behave differently if IP rules apply.
<configuration>
<system.webServer>
<defaultDocument enabled="true">
<files>
<add value="home.html" />
</files>
</defaultDocument>
<directoryBrowse enabled="false" />
</system.webServer>
</configuration>IP restrictions deserve a second look: the ipSecurity default deny response is forbidden (403), and rules are processed from top to bottom with allowUnlisted applied last. If the server sits behind a proxy or load balancer, enableProxyMode is false by default. Turning it on lets IIS also block requests by the address in the x-forwarded-for header, which identifies the original client behind a proxy or load balancer.
Google treats 403 like other 4xx errors and does not index URLs that return one; see 4xx errors.
Asked a lot.
4 questions people ask next, answered from the sources on this page.
01How do I fix 403 Forbidden in IIS?
Read the sub-status (such as 403.14 or 403.6) from the IIS log, then fix the matching setting: permissions, SSL, IP restrictions, client certificate or default document. Test again from the same client.
02What does IIS 403.14 mean?
Microsoft lists 403.14 as "Directory listing denied": the server is not set to show a directory listing and no default document is set. Add a default document, or turn on directory browsing only if you want a public listing.
03What does IIS 403.6 mean?
"IP address rejected": the server is configured to deny access to the current IP address. Check the IP Address and Domain Restrictions rules and allowUnlisted.
04Where are the IIS logs?
The default log directory is %SystemDrive%\inetpub\logs\LogFiles, and IIS creates a new log file daily by default.
Every fact, linked and dated.
rfc-editor.org
microsoft.com
google.com
- 01RFC 9110: HTTP Semanticsrfc-editor.org · checked 2026-10-25
- 02HTTP status codes in IIS 7.0 and later (Microsoft Learn)learn.microsoft.com · checked 2026-10-25
- 03IIS: Site Log Files <logFile> (Microsoft Learn)learn.microsoft.com · checked 2026-10-25
- 04IIS: HTTP Errors <httpErrors> (Microsoft Learn)learn.microsoft.com · checked 2026-10-25
- 05IIS: IP Security <ipSecurity> (Microsoft Learn)learn.microsoft.com · checked 2026-10-25
- 06IIS: Directory Browse <directoryBrowse> (Microsoft Learn)learn.microsoft.com · checked 2026-10-25
- 07IIS: Default Document <defaultDocument> (Microsoft Learn)learn.microsoft.com · checked 2026-10-25
- 08How HTTP status codes affect Google's crawlersdevelopers.google.com · checked 2026-10-25
Tools point. Agencies advise. This one ships.
Run the free audit, then approve the fixes. Every change can be undone.
- 46 fixes shipped without a ticket Brightpipe
- 0→7 ChatGPT citations in six weeks Paylane