2012-10-15 101 views
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地址訪問到了一邊。 我需要做一個額外的步驟嗎?因爲不工作。這是做這件事的最好方法嗎? 謝謝。

回答

0

,我認爲你的答案是在這個環節IP Security

Compatibility 

    Version Notes 

IIS 7.5  The <ipSecurity> element was not modified in IIS 7.5. 

IIS 7.0  The <ipSecurity> element was introduced in IIS 7.0. 

IIS 6.0  The <ipSecurity> element replaces the IIS 6.0 IPSecurity metabase property. 
相關問題