JS域名检测跳转

网站建设4年前 (2020)发布 zy
780 0 0

固定域名访问网站我们采用如下代码自动转。

<script>
try {if( self.location == "http://zhangyin.org/" ) {
top.location.href = "/";
}
else {document.write ("")}}
catch(e) {}
</script>

© 版权声明

相关文章

暂无评论

您必须登录才能参与评论!
立即登录
暂无评论...