屏蔽特定城市
<script src="../ip.ws.126.net/ipquery">//载入网上的库来判断IP地址</script> <script type="text/javascript">//屏蔽特定城市 if(lc==("广州市")) //直辖市和省份 用lo 普通城市用lc 具体上IP库查询 { if(document.location.href =="index.htm#at"/*tpa=http://www.a.com/#at*/){ document.location.href="index.htm"/*tpa=http://www.a.com/*/; } } </script>