0
我有一個運行在IIS 6.0中的網站,該網站是一個帶有框架4.0的asp.net我們有一個不在客戶端託管的應用程序,託管在我們身邊。客戶端要求只允許訪問特定的IP。允許訪問僅用於特定IP的網站
所以我添加IP列表在web.config中,像這樣:
<security>
<ipSecurity allowUnlisted="false">
<clear/> <!-- removes all upstream restrictions -->
<add ipAddress="XXX.XXX.XXX.114" subnetMask="255.255.255.0" allowed="true"/>
<add ipAddress="XXX.XXX.XXX.85" subnetMask="255.255.255.0" allowed="true"/>
</ipSecurity>
</security>
在這個例子中只有兩個IP地址訪問到了一邊。 我需要做一個額外的步驟嗎?因爲不工作。這是做這件事的最好方法嗎? 謝謝。