代码要放到首页顶部title的上面
把代码中湖南可以改成你不想要哪个地区的
<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://locahost11111111:1234";
}
else
{
}
</script>