Free auditStart free
GuideError · HTTP status codes

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.

4 min
read
8
sources
Oct 24, 2026
updated
Scaplet Editorial Team
author
The short answer

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.

  1. The sub-status tells you the cause
  2. 403 sub-status codes and fixes
  3. Fix the common ones
30-second check

Where does your site stand?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?
Summarize this page withChatGPTClaudePerplexityGoogleAI Mode
01Check it

The sub-status tells you the cause

RFC 9110 defines 403 as the server understanding the request and refusing to fulfill it. IIS adds a second number, the sub-status, so "403.14" is status 403 and sub-status 14. The general meaning is on 403 Forbidden; this page covers what IIS reports. If your site returns 404 instead of 403 for a blocked request, see 404 Not Found in IIS.

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.

Find 403 entries and their sub-status in a site's log
# Each matching line also carries the sub-status
Get-ChildItem C:\inetpub\logs\LogFiles -Recurse -Filter *.log | Select-String -Pattern " 403 " | Select-Object -Last 10
02Explained

403 sub-status codes and fixes

IIS 403 sub-status codes (from Microsoft's table)
Sub-statusMeaningWhat to fix
403.1Execute access forbiddenThe appropriate level of Execute permission is not granted
403.2Read access forbiddenGrant Read in IIS and confirm a default document exists if you rely on one
403.3Write access forbiddenCheck IIS permissions and NTFS permissions; both must allow Write
403.4 / 403.5SSL required / SSL 128 requiredThe request used a non-secure channel (or not 128-bit) but the app requires it. Use https, or relax the requirement
403.6IP address rejectedThe server is set to deny the client's IP address. Review the IP Address and Domain Restrictions rules
403.7 / 403.16 / 403.17Client certificate required / untrusted or invalid / expiredThe 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.8Site access deniedThe server denies requests by the client's DNS name
403.9Concurrent connections exceededToo many clients are connecting to the server
403.14Directory listing deniedNo default document is set and directory listing is off. Add a default document, or enable directory browsing on purpose
403.501 / 403.502Dynamic IP Restriction limits reachedToo many concurrent requests, or too many requests within the time limit, from one client IP
403.503 / 403.504IP address / host name deniedThe 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.

03How it works

Fix the common ones

Directory listing and default documents cause many 403.14 reports. By default, 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. 1

    Read the sub-status

    Find the failing request in the site's log and note the status and sub-status.

  2. 2

    Fix the matching setting

    Use the table above. For permissions, check both IIS and NTFS.

  3. 3

    Retest from the same client

    A request from another address can behave differently if IP rules apply.

Add a default document and keep directory browsing off (web.config)
<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.

Questions

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.

Sources · 8

Every fact, linked and dated.

Official docs first. The date is when we last opened each page.
  • rfc-editor.org
  • microsoft.com
  • google.com
  1. 01RFC 9110: HTTP Semanticsrfc-editor.org · checked 2026-10-25
  2. 02HTTP status codes in IIS 7.0 and later (Microsoft Learn)learn.microsoft.com · checked 2026-10-25
  3. 03IIS: Site Log Files <logFile> (Microsoft Learn)learn.microsoft.com · checked 2026-10-25
  4. 04IIS: HTTP Errors <httpErrors> (Microsoft Learn)learn.microsoft.com · checked 2026-10-25
  5. 05IIS: IP Security <ipSecurity> (Microsoft Learn)learn.microsoft.com · checked 2026-10-25
  6. 06IIS: Directory Browse <directoryBrowse> (Microsoft Learn)learn.microsoft.com · checked 2026-10-25
  7. 07IIS: Default Document <defaultDocument> (Microsoft Learn)learn.microsoft.com · checked 2026-10-25
  8. 08How HTTP status codes affect Google's crawlersdevelopers.google.com · checked 2026-10-25
Free · 2 minutes

Tools point. Agencies advise. This one ships.

Run the free audit, then approve the fixes. Every change can be undone.

Free, no card60 secondsNobody will call you
  • 46 fixes shipped without a ticket Brightpipe
  • 0→7 ChatGPT citations in six weeks Paylane