JS控制除主域名访问
《
<script language="javascript"> var fromURL = document.referrer; if(fromURL.indexOf("localhost:8080")<0) { window.location.href="http://localhost:8080/abc/404.htm" } </script> <script language="javascript"> if(location.host!="http://www.eguotong.com") { window.location.href="http://localhost:8080/abc/404.htm" } </script>