Hi

Complete IIS Manager Configuration Guide

 

Complete IIS Manager Configuration Guide

Your screenshot shows the Internet Information Services (IIS) Manager – Features View on Windows Server.

These features control how IIS handles HTTP requests, secures websites, manages application execution, processes URLs, caches responses, and allows remote administration.

I'll explain each feature with:

  1. What it does.

  2. Why you need it.

  3. Where to configure it.

  4. Practical configuration examples.

  5. Recommended settings for your FollowWork production environment.

Your screenshot contains 17 IIS features, divided into two sections.

17 features identified
Windows Server IIS

1. Website and application configuration

1. HTTP Response Headers

Purpose: Controls HTTP headers sent by IIS to browsers and API clients.

Headers can provide browser security instructions, caching instructions, and information about the server response.

Where to configure:

  1. Open IIS Manager.

  2. Select your website, such as followwork.com.

  3. Double-click HTTP Response Headers.

  4. Click Add in the Actions panel.

  5. Enter the header name and value.

Recommended starting configuration:

Header

Value

X-Content-Type-Options

nosniff

X-Frame-Options

SAMEORIGIN

Referrer-Policy

strict-origin-when-cross-origin

Permissions-Policy

camera=(), microphone=(), geolocation=()

For HTTPS websites, you can also configure:

Header

Value

Strict-Transport-Security

max-age=31536000

Only enable HSTS after confirming HTTPS works across the intended hostnames. Use includeSubDomains only if every affected subdomain supports HTTPS.

Important: These headers improve browser security, but they do not prevent Postman, curl, bots, or direct API calls.

2. ISAPI and CGI Restrictions

Purpose: Controls which ISAPI DLLs and CGI executable programs IIS is allowed to execute.

For example:

  • ASP.NET applications running in Classic pipeline mode.

  • Legacy applications using ISAPI extensions.

  • Applications using CGI executables.

How to configure:

  1. Select the server name in IIS Manager.

  2. Double-click ISAPI and CGI Restrictions.

  3. Click Add.

  4. Enter the executable or DLL path.

  5. Provide a description.

  6. Enable Allow extension path to execute only if required.

Example:

C:\Windows\Microsoft.NET\Framework64\
v4.0.30319\aspnet_isapi.dll

Recommendation: Do not allow unknown CGI executables or ISAPI DLLs. Keep this feature restrictive. Modern ASP.NET Core applications hosted through the ASP.NET Core Module generally do not need you to add their application DLL here.

3. ISAPI Filters

Purpose: Allows native DLLs to inspect or modify HTTP requests and responses at different stages of IIS processing.

Possible uses:

  • Legacy URL processing.

  • Request interception.

  • Custom logging.

  • Legacy authentication integrations.

How to configure:

  1. Select the server or website.

  2. Open ISAPI Filters.

  3. Click Add.

  4. Enter a filter name.

  5. Enter the full DLL path.

  6. Apply the configuration.

Example:

Name: CustomRequestFilter
Path: C:\IISFilters\CustomFilter.dll

Recommendation: Avoid installing unnecessary filters. Incorrect filters can affect every request and cause application failures. Microsoft recommends using IIS modules rather than ISAPI filters when developing new IIS extensions.

Microsoft Learn

4. Logging

Very important for production

Purpose: Records incoming requests and their responses.

You can identify:

  • Who is accessing your website (client IP).

  • Which API endpoints are being called.

  • HTTP status codes (200, 301, 400, 401, 403, 404, 500).

  • Request methods (GET, POST, PUT, DELETE).

  • Request processing time.

  • User agent and query strings, if configured.

How to configure:

  1. Select your website.

  2. Double-click Logging.

  3. Select format: W3C.

  4. Configure the log directory.

  5. Click Select Fields.

  6. Enable the following fields:

Field

Purpose

Date

Request date

Time

Request time (UTC)

Client IP Address

Source IP

Method

GET / POST

URI Stem

API path

URI Query

Query string

HTTP Status

Response status

Win32 Status

Windows error

Time Taken

Processing duration

User Agent

Browser/client details

Referer

Previous page

Default log location:

C:\inetpub\logs\LogFiles

FollowWork recommendation: Use IIS logs to identify repeated calls to OTP endpoints, unusual IP addresses, excessive 404 responses, and repeated 401/403 errors.

Never log OTP values, passwords, authorization tokens, session cookies, or sensitive request bodies.

You can also use Failed Request Tracing (a separate IIS feature) to diagnose slow or failed requests.

5. MIME Types

Purpose: Defines which file extensions IIS can serve as static content and the corresponding content type.

Example:

Extension

MIME type

.html

text/html

.css

text/css

.js

text/javascript

.json

application/json

.png

image/png

.jpg

image/jpeg

.svg

image/svg+xml

.woff2

font/woff2

.pdf

application/pdf

How to configure:

  1. Select your website.

  2. Double-click MIME Types.

  3. Click Add.

  4. Enter the file extension.

  5. Enter the MIME type.

  6. Click OK.

Example:

File name extension: .webp
MIME type: image/webp

Important: Do not add executable or sensitive file extensions merely to make them downloadable. MIME Types does not provide file-level access control.

6. Modules

Purpose: Modules are components that participate in the IIS request-processing pipeline.

Examples include:

  • Authentication modules.

  • Authorization modules.

  • Static file processing.

  • URL processing.

  • Compression.

  • Request filtering.

  • ASP.NET integration.

Some common modules:

Module

Purpose

StaticFileModule

Serves static files

DefaultDocumentModule

Finds default pages

RequestFilteringModule

Filters incoming requests

HttpCacheModule

Handles output caching

WindowsAuthenticationModule

Windows authentication

AnonymousAuthenticationModule

Anonymous access

RewriteModule

URL rewriting, if installed

How to configure:

  1. Select the website.

  2. Open Modules.

  3. Review installed modules.

  4. Select a module to inspect it.

  5. Add or remove modules only when required.

Recommendation: Do not randomly remove modules from a production website. Removing an authentication, request filtering, or ASP.NET module can break security or application functionality.

For FollowWork, retain the required ASP.NET Core Module, authentication, and request-processing modules.

7. Output Caching

Purpose: Stores generated responses so IIS can serve subsequent matching requests without executing the complete request pipeline again.

Benefits:

  • Faster response times.

  • Reduced CPU consumption.

  • Reduced application execution.

  • Better performance for frequently accessed static or cacheable content.

How to configure:

  1. Select your website.

  2. Open Output Caching.

  3. Click Add.

  4. Specify the file extension.

  5. Select the appropriate user-mode or kernel-mode caching options.

  6. Configure cache duration and policies.

Example:

Extension: .css
Cache mode: User-mode
Duration: 60 seconds

Important for FollowWork:

Do not casually enable output caching for:

  • OTP endpoints.

  • Login and logout.

  • User profile APIs.

  • Chat messages.

  • Private documents.

  • User-specific API responses.

  • Authentication and authorization responses.

Otherwise, one user's response could potentially be served to another user if the caching policy is incorrect.

Use ASP.NET Core response caching or output caching deliberately for appropriate public content.

8. Request Filtering

One of the most important security features

Purpose: Blocks unwanted HTTP requests before they reach your application.

This is particularly useful against:

  • Requests for sensitive files.

  • Unwanted HTTP methods.

  • Very long URLs.

  • Oversized query strings.

  • Suspicious URL sequences.

  • Requests for hidden folders.

How to configure:

  1. Select your website.

  2. Double-click Request Filtering.

  3. Configure the following tabs:

Tab

What it controls

File Name Extensions

Blocks file extensions

Hidden Segments

Blocks directory names

HTTP Verbs

Allows or denies HTTP methods

URL

Blocks suspicious URL sequences

Query Strings

Blocks suspicious query strings

Headers

Limits HTTP header sizes

Recommended security settings

A. Block sensitive files

Under File Name Extensions, ensure that sensitive files cannot be downloaded.

Examples:

.config
.cs
.csproj
.dll
.pdb
.bak
.sql

Be careful with .dll and other extensions if your application intentionally serves them.

B. Block sensitive directories

Under Hidden Segments, add:

bin
obj
App_Data
.git
.svn

Do not add application directories without checking whether your website needs them publicly.

C. Restrict HTTP methods

Allow only methods your application actually uses.

For example:

GET
POST
PUT
DELETE
PATCH
OPTIONS
HEAD

If your application uses WebDAV, additional considerations apply.

D. Set request limits

Example starting values:

Setting

Example

Maximum URL length

4096 bytes

Maximum query string

2048 bytes

Maximum content length

30 MB

Adjust these based on your application's upload requirements.

E. Hide IIS server header

If supported by your IIS version, configure:

<system.webServer>
    <security>
        <requestFiltering removeServerHeader="true" />
    </security>
</system.webServer>

This removes the IIS Server response header. It does not hide every technology fingerprint.

Microsoft documents these filtering options and their corresponding HTTP error codes.

Microsoft Learn+2

9. Server Certificates

Purpose: Manages SSL/TLS certificates used to secure HTTPS connections.

You can:

  • Generate a certificate signing request (CSR).

  • Import a certificate.

  • Complete a certificate request.

  • Import a PFX certificate.

  • Export a certificate.

How to configure:

  1. Select the server name, not the website.

  2. Open Server Certificates.

  3. Click Import.

  4. Select your .pfx file.

  5. Enter the PFX password.

  6. Import the certificate.

Then configure the website:

  1. Select your website.

  2. Click Bindings.

  3. Click Add.

  4. Select https.

  5. Port: 443.

  6. Host name: followwork.com.

  7. Enable Require Server Name Indication (SNI) if sharing the IP address with other HTTPS websites.

  8. Select the certificate.

  9. Click OK.

Example:

https://followwork.com
https://api.followwork.com
https://socket.followwork.com

Each hostname must have a matching certificate, or be covered by an appropriate SAN or wildcard certificate.

Recommendation: Use valid certificates, automatic renewal, and TLS 1.2 or TLS 1.3 where supported.

10. URL Rewrite

Very useful for your reverse-proxy architecture

Purpose: Changes incoming URL processing without changing the URL displayed in the browser.

Uses:

  • Redirect HTTP to HTTPS.

  • Remove .aspx extensions.

  • Redirect old URLs to new URLs.

  • Reverse proxy requests.

  • Block unwanted URL patterns.

  • Route requests to different backend servers.

How to install:

URL Rewrite is a separate IIS extension.

Download: Microsoft IIS URL Rewrite module.

For reverse proxy, also install Application Request Routing (ARR) and enable proxy functionality.

Example: HTTP to HTTPS redirect

In URL Rewrite, add an inbound rule:

<rule name="HTTP to HTTPS" stopProcessing="true">
    <match url="(.*)" />
    <conditions>
        <add input="{HTTPS}"
             pattern="off"
             ignoreCase="true" />
    </conditions>
    <action type="Redirect"
            url="https://{HTTP_HOST}/{R:1}"
            redirectType="Permanent" />
</rule>

Example: Your existing reverse proxy

You previously mentioned two backend servers:

192.168.1.100
192.168.1.101

A rewrite rule can forward requests to an internal backend:

<rule name="FollowWork API Proxy"
      stopProcessing="true">

    <match url="(.*)" />

    <conditions>
        <add input="{HTTP_HOST}"
             pattern="^api\.followwork\.com$" />
    </conditions>

    <action type="Rewrite"
            url="http://192.168.1.100/{R:1}" />
</rule>

This is a single-backend example. For load balancing across both servers, configure ARR Server Farm and use the farm as the rewrite destination rather than hardcoding one backend.

11. Worker Processes

Purpose: Displays the running IIS worker processes (w3wp.exe).

Each application pool can have one or more worker processes.

You can inspect:

  • Application pool name.

  • Process ID (PID).

  • CPU and memory usage through Windows tools.

  • Currently executing requests.

How to use:

  1. Select your server.

  2. Open Worker Processes.

  3. View the application pools.

  4. Select a worker process.

  5. Click View Current Requests.

Example:

Application Pool: FollowWorkAPI
PID: 5420
Process: w3wp.exe

You can investigate the process using PowerShell:

Get-Process w3wp |
    Select-Object Id, CPU, WorkingSet64

To check application pool processes:

Get-CimInstance Win32_Process `
    -Filter "Name='w3wp.exe'" |
    Select-Object ProcessId, CommandLine

Recommendation: Monitor CPU, memory, request duration, and unexpected worker process recycling. This is useful when investigating FollowWork API slowness or high resource usage.

2. IIS Management features

These features control how IIS configuration is managed and who can administer websites.

12. Configuration Editor

Purpose: Allows you to edit IIS configuration sections directly through a graphical interface.

Instead of manually editing web.config or applicationHost.config, you can select a configuration section and modify its properties.

Examples:

system.webServer/security/requestFiltering

system.webServer/httpProtocol

system.webServer/caching

system.webServer/rewrite

How to configure:

  1. Select your website.

  2. Open Configuration Editor.

  3. Choose a section from the dropdown.

  4. Change the required property.

  5. Click Apply.

Example:

Section:
system.webServer/security/requestFiltering

Property:
removeServerHeader

Value:
True

Recommendation: Always back up IIS configuration before making server-level changes.

13. Feature Delegation

Purpose: Determines which IIS features website administrators can configure without having full server administrator permissions.

For example, you may want a developer to manage:

  • HTTP Response Headers.

  • Default Documents.

  • URL Rewrite.

  • Directory Browsing.

But you may not want that developer to manage:

  • Authentication.

  • SSL settings.

  • Server-level security.

  • Application pool configuration.

How to configure:

  1. Select your server.

  2. Open Feature Delegation.

  3. Select the feature.

  4. Choose the delegation level.

Permission

Meaning

Read Only

Can view settings

Read/Write

Can view and modify settings

Not Delegated

Cannot manage the feature

Recommendation: For FollowWork production, keep sensitive features restricted to server administrators.

Microsoft Learn+1

14. IIS Manager Permissions

Purpose: Allows Windows or domain users to be granted permission to manage a particular IIS website through IIS Manager.

For example:

Administrator
    Full server management

Developer1
    FollowWork website management

Developer2
    API website management

How to configure:

  1. Select the required website.

  2. Open IIS Manager Permissions.

  3. Click Allow User.

  4. Select Windows user or IIS Manager user.

  5. Add the user.

  6. Configure the appropriate delegated features.

Important: This is not the same as giving a user access to your website's API or application data. It controls IIS administration.

15. IIS Manager Users

Purpose: Creates separate IIS Manager accounts for delegated remote administration.

Example:

Username: fwdeveloper
Password: ********

You can use this account to manage a permitted website without giving the developer your Windows Administrator credentials.

How to configure:

  1. Select your server.

  2. Open IIS Manager Users.

  3. Click Add User.

  4. Enter username and password.

  5. Click OK.

  6. Open the website's IIS Manager Permissions.

  7. Allow the newly created user.

Recommendation: Use separate accounts for different developers. Never share the server administrator account.

16. Management Service

Purpose: Allows remote IIS administration from another computer using IIS Manager.

It uses the Windows Web Management Service (WMSVC).

For example:

Your development PC
       |
       | HTTPS management connection
       |
Windows Server IIS
       |
       WMSVC
       |
FollowWork website

How to configure:

  1. Select your server.

  2. Open Management Service.

  3. Enable Enable remote connections.

  4. Configure the management service port (default 8172).

  5. Configure SSL certificate.

  6. Click Apply.

  7. Start the Web Management Service.

PowerShell:

Set-Service WMSVC -StartupType Automatic

Start-Service WMSVC

Firewall:

New-NetFirewallRule `
  -DisplayName "IIS Remote Management" `
  -Direction Inbound `
  -Protocol TCP `
  -LocalPort 8172 `
  -Action Allow `
  -RemoteAddress 192.168.1.0/24

Use a restricted trusted management subnet instead of allowing all Internet IP addresses.

Recommendation: Do not expose port 8172 publicly. Use VPN or a trusted management network.

17. Shared Configuration

Useful for multi-server IIS environments

Purpose: Allows multiple IIS servers to use a common IIS configuration stored in a shared location.

For example:

IIS Server 1
192.168.1.100
       |
       |
       +------ Shared Configuration
       |       \\FileServer\IISConfig
       |
IIS Server 2
192.168.1.101

Both IIS servers can use the same configuration for websites, application pools, and server-level settings.

How to configure:

  1. Select the server.

  2. Open Shared Configuration.

  3. Click Export Configuration.

  4. Select a secure shared folder.

  5. Enter encryption credentials.

  6. Enable Enable shared configuration.

  7. Enter the shared path and credentials.

  8. Apply and restart IIS if required.

Example:

\\192.168.1.150\IISConfig

Important:

  • Back up the configuration.

  • Protect the shared folder with appropriate permissions.

  • Protect the exported encryption keys.

  • Ensure both servers use compatible IIS components and modules.

  • Plan application pool identities and application-specific settings separately.

  • Shared Configuration does not synchronize website content, uploads, databases, or application binaries.

For your two proxy servers, this can be useful if they need identical IIS configuration. However, configure and test it carefully before enabling it in production.

3. Recommended IIS configuration for FollowWork

Considering your ASP.NET MVC, ASP.NET Core, Node.js, IIS reverse-proxy, and two-server architecture, I recommend configuring the features in this order.

Priority 1 – Security

Configure first

Priority 2 – Application performance

Priority 3 – Administration and HA

Priority 4 – Legacy compatibility

4. Additional IIS features I recommend installing

Your screenshot doesn't show all IIS features. Some important features are available through Server Manager.

Open:

Server Manager → Add Roles and Features → Web Server (IIS)

Consider these:

Feature

Why you need it

Dynamic Content Compression

Compress API responses

Static Content Compression

Compress CSS, JS and HTML

Failed Request Tracing

Diagnose HTTP 500 and slow requests

IP and Domain Restrictions

Restrict unwanted IP addresses

WebSocket Protocol

Required for Socket.IO WebSocket transport

Application Request Routing

Reverse proxy and load balancing

Windows Authentication

Internal application authentication

Request Monitor

Monitor running requests

For your FollowWork Socket.IO application, ensure WebSocket Protocol is installed and enabled. Also configure ARR correctly if IIS is acting as your reverse proxy.

5. Important: What IIS can and cannot protect

Since you previously mentioned users repeatedly hitting your OTP API using Postman and other tools, this distinction is important.

Requirement

IIS feature / solution

Block sensitive files

Request Filtering

Restrict HTTP methods

Request Filtering

Hide IIS server header

Request Filtering

Enforce HTTPS

Server Certificates + URL Rewrite

Restrict IP addresses

IP and Domain Restrictions

Monitor suspicious API calls

Logging

Reverse proxy

URL Rewrite + ARR

Block excessive requests

Rate limiting / WAF

Prevent OTP abuse

Application-level rate limiting

Prevent unauthorized API calls

Authentication + authorization

Prevent replay attacks

OTP expiry + one-time-use validation

Protect API credentials

Server-side secret management

One important point: Hiding JavaScript, minifying JavaScript, or hiding network paths does not prevent someone from calling your public API directly. You must enforce authentication, authorization, validation, rate limiting, and abuse detection on the server.

6. Microsoft documentation

These are useful official references for implementing the configurations:

  1. IIS Feature-to-Configuration Reference

  2. Configure Request Filtering

  3. Request Filtering Configuration

  4. ISAPI Filters

  5. Feature Delegation

  6. ISAPI and CGI Restrictions

Latest
Previous
Next Post »