Rss & SiteMap

Foxtable(狐表) http://www.foxtable.com

新一代数据库软件,完美融合Access、Foxpro、Excel、vb.net之优势,人人都能掌握的快速软件开发工具!
共2 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:http如何设置成只有特定ip才能访问

1楼
ygg8310 发表于:2024/1/19 9:47:00
如题,http设置成只有特定ip可以访问,例如只允许192.168.2.2--192.168.2.20进行访问21-100不可访问?
2楼
有点蓝 发表于:2024/1/19 9:58:00
httprequest事件第一行

dim ss() as string = e.Request.RemoteEndPoint().Address.ToString().split(".")
dim a as integer = cint(ss(ss.length - 1)) 
if a>=2 andalso a<=20 then
其它正常的网页代码
else
e.WriteString("无权访问")
end if
共2 条记录, 每页显示 10 条, 页签: [1]

Copyright © 2000 - 2018 foxtable.com Tel: 4000-810-820 粤ICP备11091905号

Powered By Dvbbs Version 8.3.0
Processed in .01807 s, 2 queries.