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:
What it does.
Why you need it.
Where to configure it.
Practical configuration examples.
Recommended settings for your FollowWork production environment.
Your screenshot contains 17 IIS features, divided into two sections.
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:
Open IIS Manager.
Select your website, such as
followwork.com.Double-click HTTP Response Headers.
Click Add in the Actions panel.
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:
Select the server name in IIS Manager.
Double-click ISAPI and CGI Restrictions.
Click Add.
Enter the executable or DLL path.
Provide a description.
Enable Allow extension path to execute only if required.
Example:
C:\Windows\Microsoft.NET\Framework64\
v4.0.30319\aspnet_isapi.dllRecommendation: 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:
Select the server or website.
Open ISAPI Filters.
Click Add.
Enter a filter name.
Enter the full DLL path.
Apply the configuration.
Example:
Name: CustomRequestFilter
Path: C:\IISFilters\CustomFilter.dllRecommendation: 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.
4. Logging
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:
Select your website.
Double-click Logging.
Select format:
W3C.Configure the log directory.
Click Select Fields.
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\LogFilesFollowWork 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 |
application/pdf |
How to configure:
Select your website.
Double-click MIME Types.
Click Add.
Enter the file extension.
Enter the MIME type.
Click OK.
Example:
File name extension: .webp
MIME type: image/webpImportant: 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:
Select the website.
Open Modules.
Review installed modules.
Select a module to inspect it.
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:
Select your website.
Open Output Caching.
Click Add.
Specify the file extension.
Select the appropriate user-mode or kernel-mode caching options.
Configure cache duration and policies.
Example:
Extension: .css
Cache mode: User-mode
Duration: 60 secondsImportant 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
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:
Select your website.
Double-click Request Filtering.
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
.sqlBe 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
.svnDo 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
HEADIf 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.
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:
Select the server name, not the website.
Open Server Certificates.
Click Import.
Select your
.pfxfile.Enter the PFX password.
Import the certificate.
Then configure the website:
Select your website.
Click Bindings.
Click Add.
Select
https.Port:
443.Host name:
followwork.com.Enable Require Server Name Indication (SNI) if sharing the IP address with other HTTPS websites.
Select the certificate.
Click OK.
Example:
https://followwork.com
https://api.followwork.com
https://socket.followwork.comEach 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
Purpose: Changes incoming URL processing without changing the URL displayed in the browser.
Uses:
Redirect HTTP to HTTPS.
Remove
.aspxextensions.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.101A 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:
Select your server.
Open Worker Processes.
View the application pools.
Select a worker process.
Click View Current Requests.
Example:
Application Pool: FollowWorkAPI
PID: 5420
Process: w3wp.exeYou can investigate the process using PowerShell:
Get-Process w3wp |
Select-Object Id, CPU, WorkingSet64To check application pool processes:
Get-CimInstance Win32_Process `
-Filter "Name='w3wp.exe'" |
Select-Object ProcessId, CommandLineRecommendation: 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/rewriteHow to configure:
Select your website.
Open Configuration Editor.
Choose a section from the dropdown.
Change the required property.
Click Apply.
Example:
Section:
system.webServer/security/requestFiltering
Property:
removeServerHeader
Value:
TrueRecommendation: 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:
Select your server.
Open Feature Delegation.
Select the feature.
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.
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 managementHow to configure:
Select the required website.
Open IIS Manager Permissions.
Click Allow User.
Select Windows user or IIS Manager user.
Add the user.
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:
Select your server.
Open IIS Manager Users.
Click Add User.
Enter username and password.
Click OK.
Open the website's IIS Manager Permissions.
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 websiteHow to configure:
Select your server.
Open Management Service.
Enable Enable remote connections.
Configure the management service port (default
8172).Configure SSL certificate.
Click Apply.
Start the Web Management Service.
PowerShell:
Set-Service WMSVC -StartupType Automatic
Start-Service WMSVCFirewall:
New-NetFirewallRule `
-DisplayName "IIS Remote Management" `
-Direction Inbound `
-Protocol TCP `
-LocalPort 8172 `
-Action Allow `
-RemoteAddress 192.168.1.0/24Use 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
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.101Both IIS servers can use the same configuration for websites, application pools, and server-level settings.
How to configure:
Select the server.
Open Shared Configuration.
Click Export Configuration.
Select a secure shared folder.
Enter encryption credentials.
Enable Enable shared configuration.
Enter the shared path and credentials.
Apply and restart IIS if required.
Example:
\\192.168.1.150\IISConfigImportant:
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
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:
Sign up here with your email
ConversionConversion EmoticonEmoticon