localhost的绕过方法
记录一下localhost的一些平替,本地起了http-server服务,挨个测试成功
http://127.0.0.1
http://127.1 //省略0
http://0177.0.0.1 //8进制
http://0x7F.0.0.1 //16进制
http://017700000001 //8进制整数格式
http://2130706433 //10进制整数格式
http://0x7F000001 //16进制整数格式
http://127.127.127.127 //暂时不知道原理
http://127。0。0。1 //句号绕过
http://1②7.0.0.1 //数字符号绕过
或
修改本地hosts文件
在linux也可用0表示127.0.0.1
欢迎各位师傅补充