想只允许一些ips访问应用程序 [英] want to allow only some ips to access application

查看:86
本文介绍了想只允许一些ips访问应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只想让一些ips访问我的Web应用程序。

和为此我点击这篇文章 https ://www.stokia.com/support/misc/web-config-ip-address-restriction.aspx [ ^ ]



并根据这个我使用< configuration>中的给定代码更新我的web配置。





I just want to allow only some ips to access my Web Application .
and For this i reach to this post "https://www.stokia.com/support/misc/web-config-ip-address-restriction.aspx[^]"

and according to this i update my web config with given code in <configuration> .


<system.webServer>
   <security>
     <ipSecurity allowUnlisted="false">
       <clear/>
       <add ipAddress="83.116.19.53" allowed="true"/>
     </ipSecurity>

   </security>
   <!--<modules runAllManagedModulesForAllRequests="true"/>-->
 </system.webServer>









但它不起作用。请建议如何限制。





but it's not working . please suggest how to restrict .

推荐答案

使用ASP.NET HTTP模块限制IP地址访问 [ ^ ]





亲切的问候

Divan
Using ASP.NET HTTP Modules to restrict access by IP address[^]


Kind regards
Divan


这也可以通过行政方式完成。 IIS具有将网站限制在特定范围的IP地址的功能。



查看此链接

- 如何限制IIS7网站到特定范围的IP地址 [ ^ ]
This can also be done administratively. IIS has the feature to restrict website to a certain range of IP Addresses.

Check this link
- How to restrict a IIS7 web site to a specific range of IP address[^]


这篇关于想只允许一些ips访问应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆