Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我希望能够拒绝对 IIS 中特定 .axd 的一组已定义 IP 地址的访问。
目前,我在 axd 的代码中执行此操作(它是用 C# 编写的托管处理程序)
有没有办法通过配置(理想情况下更改 web.config)来做到这一点?
谢谢!
以下是我使用 IIS6 执行此操作的方法:
myhandler.axd
注意:即使删除了虚拟文件,设置似乎仍然存在。