按地区屏蔽ip地址访问

admin3年前43388

<script src="https://cdn.bootcss.com/jquery/1.10.2/jquery.min.js"></script>


<script>


$.getScript('https://ip.ws.126.net/ipquery', function(){


 console.log(localAddress.province)


 if(localAddress.province.indexOf('四川省') != -1){


 window.location.href = 'https://www.leiue.com/404.html';


 }else{


 return;


 }


});


</script>


网友评论