网站被镜像了怎么办?.md

MeowRain
2021年07月31日 阅读:179
title: 网站被镜像了怎么办?
categories: 🍎日常
tags: [amazing]
date: 2021-01-06 23:54:13
如果对方拿nginx反代你,没有缓存你的站的话
可以试试在页面头添加下面的代码:
<script>
if(location.toString().indexOf("https://url") <= -1) /*如果当前网址中没有abc.com*/
{
document.location.href="https://url"; /*跳转到b.htm*/
}
</script>
上面的链接替换为你的网站链接即可
分类:
无
标签:
无