大网数据广告活动
Web服务器与PHP

Request Restrictions can't be set for ISAPI

· 52CE 我爱测

This article provides resolutions for the problem where the Request Restrictions functionality not working for Wildcard ISAPI extension.

This article helps you resolve the problem where the Request Restrictions feature of handler mappings isn't available for a Wildcard Internet Server Application Programming Interface (ISAPI) extension on Microsoft Internet Information Services (IIS).

Original product version:   Internet Information Services
Original KB number:   2725025

Symptoms

The Request Restrictions functionality of handler mappings can't be set for a Wildcard ISAPI extension on the current version of IIS. If the Request Restrictions feature is set by editing the IIS configuration and adding the sections requireAccess and resourceType for the wildcard ISAPI extension handler, you might experience unexpected behavior when browsing pages that aren't handled by the Wildcard ISAPI extension, such as StaticFile handler requests.

The option to add Request Restrictions for a Wildcard ISAPI isn't available through the IIS Manager.

Cause

This behavior is by design on the current version of IIS. You can't add Request Restrictions for a Wildcard ISAPI extension on IIS either through the IIS manager or by changing configuration. Adding Request Restrictions for a Wildcard ISAPI extension by editing the configuration isn't supported on IIS.

Resolution

You need to manually perform the checks inside your wildcard ISAPI extension because the feature to add request restrictions for a Wildcard ISAPI isn't available on IIS.

For example, if you intend to run your ISAPI extension on IIS, and if you want to deny users who don't have permissions to view a particular file on IIS, you need to perform those same checks manually in your wildcard ISAPI extension and deny users.

Source: Microsoft Learn / IT Pro troubleshooting by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / IT Pro troubleshooting
适用范围
See source applicability · Source date 12/18/2024
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。