ASP 判断本地IP和输入IP是否合法,子程序 f_chkLocal() f_CheckIpAddres(Source)运行结果:
False
[127.0.0.1]
127_0_0_1_True[127.0.0.2]
127_0_0_2_True[127.0.0.1a]
127_0_0_1a_False[127.0.0.1.2]
False[www.a.com]
False[127.0.0.1.a.com]
False[192.168.1.1]
192_168_1_1_True[]
False可以看到补掉了很多漏洞。