前端代码 :注此方法适用默认访问html为此页面,端口改为80后访问浏览器目录就会只剩下ip+forLogin.html 再通过nginx实现指定后缀隐藏后就隐藏forLogin.html 只剩下ip
<html>
<head>
<title>
用户登录
</title>
<meta http-equiv="content-type" content="textml; charset=utf-8">
</head>
<!-- 框架,主要是将标题栏锁定在起始页面的地址,其他请求不改变标题栏网址,打到隐藏效果 -->
<frameset id="mm" border="0" frameBorder="no" frameSpacing="0" rows="100%">
<frame name="sdd" scrolling="no" src="index.html" noresize="noresize">
</frame>
</frameset>
<script></script>
</html>
注:(未经测试)