屏蔽某个地区不让其进网站代码

更新时间:2023-12-14

屏蔽某个地区不让其进网站代码

<script type="text/javascript" src="https://r.inews.qq.com/api/ip2city?otype=jsonp&callback=callback&callback=wea_%20=&_=1652257980798"></script>

<script type="text/javascript">

var province = wea_['province'];

if(province .indexOf('广东') >= 0)

{

window.location.href="http://www.31jz.com";

}

else

{

}

</script>