# 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.

Canonical: https://scaplet.com/errors/http/403/iis

Guide Error · HTTP status codes

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

403 4xx · Client error

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](#the-sub-status-tells-you-the-cause)
2. [403 sub-status codes and fixes](#403-sub-status-codes-and-fixes)
3. [Fix the common ones](#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 with [ChatGPT](https://chatgpt.com/?hints=search&q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fhttp%2F403%2Fiis%20(%22403%20Forbidden%20in%20IIS%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Claude](https://claude.ai/new?q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fhttp%2F403%2Fiis%20(%22403%20Forbidden%20in%20IIS%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Perplexity](https://www.perplexity.ai/search?q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fhttp%2F403%2Fiis%20(%22403%20Forbidden%20in%20IIS%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [![Google](/logos/ai/google-color.svg)AI Mode](https://www.google.com/search?udm=50&q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fhttp%2F403%2Fiis%20(%22403%20Forbidden%20in%20IIS%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

_01_Check 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](/errors/http/403); this page covers what IIS reports. If your site returns 404 instead of 403 for a blocked request, see [404 Not Found in IIS](/errors/http/404/iis).

IIS records the HTTP [status code](/glossary/http-status-codes) 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
```

_02_Explained

## 403 sub-status codes and fixes

IIS 403 sub-status codes (from Microsoft's table)
| 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](/glossary/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.

_03_How 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.

**403 can be changed to look like a 404** `denyAction` accepts `NotFound`, so an IP rule can answer 404 instead of 403. If you expect a 403 and see a 404, check this setting before you check the files.

Google treats 403 like other 4xx errors and does not index URLs that return one; see [4xx errors](/seo-issues/4xx-errors).

Questions

## Asked a lot.

4 questions people ask next, answered from the sources on this page.

_01_ How 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.

_02_ What 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.

_03_ What 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`.

_04_ Where 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. 01 [RFC 9110: HTTP Semantics](https://www.rfc-editor.org/rfc/rfc9110.html) rfc-editor.org · checked 2026-10-25
2. 02 [HTTP status codes in IIS 7.0 and later (Microsoft Learn)](https://learn.microsoft.com/en-us/troubleshoot/developer/webapps/iis/www-administration-management/http-status-code) learn.microsoft.com · checked 2026-10-25
3. 03 [IIS: Site Log Files <logFile> (Microsoft Learn)](https://learn.microsoft.com/en-us/iis/configuration/system.applicationhost/sites/sitedefaults/logfile/) learn.microsoft.com · checked 2026-10-25
4. 04 [IIS: HTTP Errors <httpErrors> (Microsoft Learn)](https://learn.microsoft.com/en-us/iis/configuration/system.webserver/httperrors/) learn.microsoft.com · checked 2026-10-25
5. 05 [IIS: IP Security <ipSecurity> (Microsoft Learn)](https://learn.microsoft.com/en-us/iis/configuration/system.webserver/security/ipsecurity/) learn.microsoft.com · checked 2026-10-25
6. 06 [IIS: Directory Browse <directoryBrowse> (Microsoft Learn)](https://learn.microsoft.com/en-us/iis/configuration/system.webserver/directorybrowse) learn.microsoft.com · checked 2026-10-25
7. 07 [IIS: Default Document <defaultDocument> (Microsoft Learn)](https://learn.microsoft.com/en-us/iis/configuration/system.webserver/defaultdocument/) learn.microsoft.com · checked 2026-10-25
8. 08 [How HTTP status codes affect Google's crawlers](https://developers.google.com/crawling/docs/troubleshooting/http-status-codes) developers.google.com · checked 2026-10-25

## Keep learning

[All errors](/errors)

[Learn 403 Forbidden HTTP status codes](/errors/http/403) [Related 4xx errors Status codes and links](/seo-issues/4xx-errors) [Read next 404 Not Found in IIS HTTP status codes](/errors/http/404/iis) [Do Run a free site audit Free, about two minutes](/site-audit)

Other 403 errors
[403 Forbidden in Apache](/errors/http/403/apache) [403 Forbidden in Chrome](/errors/http/403/chrome) [403 Forbidden in Django](/errors/http/403/django) [403 Forbidden in Laravel](/errors/http/403/laravel) [403 Forbidden in nginx](/errors/http/403/nginx)

More in 403 Forbidden
[403 Forbidden in Apache](/errors/http/403/apache) [403 Forbidden in Chrome](/errors/http/403/chrome) [403 Forbidden in Django](/errors/http/403/django) [403 Forbidden in IIS](/errors/http/403/iis) [403 Forbidden in Laravel](/errors/http/403/laravel) [403 Forbidden in nginx](/errors/http/403/nginx) [403 Forbidden in Spring Boot](/errors/http/403/spring-boot) [403 Forbidden in WordPress](/errors/http/403/wordpress) [403 Forbidden on Cloudflare](/errors/http/403/cloudflare) [403 Forbidden on CloudFront](/errors/http/403/cloudfront)

Terms on this page
[HTTP status codes](/glossary/http-status-codes) [HTTPS](/glossary/https)

Free · 2 minutes

## Tools point. Agencies advise. _This one ships._

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

[Audit my site free](/site-audit)

Free, no card 60 seconds Nobody will call you

- **46** fixes shipped without a ticket Brightpipe
- **0→7** ChatGPT citations in six weeks Paylane
