|
假设后台路径:/admin /manage 在后台目录新建 web.config: xml <configuration> <system.webServer> <security> <ipSecurity allowUnlisted="false"> <!-- 填入你的办公IP,多个可添加多行 --> <add ipAddress="111.222.333.444" allowed="true" /> </ipSecurity> </security> </system.webServer> </configuration> 作用: ? 全世界都无法访问后台 ? 只有你的 IP 能打开 ? 暴力破解、弱口令、扫描全部失效 |