我运行一个非常大的网站,我刚发现一个黑客立陶宛网站100%复制我的网站和所有内容通过框架。我能够在使用htaccess时阻止它
Header append X-FRAME-OPTIONS "SAMEORIGIN"
这可以在Firefox,Safari和IE中完成,但不是Chrome。我也阻止了他们网站的IP地址,但没有做任何事情。还联系了他们的主人,但还没有。
当我查看源代码时,它显示的是:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html>
<head>
<title>Hi I Steal Other Site's Content</title>
<meta name="description" content="">
<meta name="keywords" content="">
<meta name="generator" content="ORT - Ovh Redirect Technology">
<meta name="url" content="https://example.com/page">
<meta name="robots" content="all">
</head>
<frameset rows="100%,0" frameborder=no border=0>
<frame name="ORT" src="https://example.com/page">
<frame name="NONE" src="" scrolling="no" noresize>
<noframes>
<body><a href="https://example.com/page">Click here</a><hr></body>
</noframes>
</frameset>
</html>
知道为什么它不能在Chrome中运行吗?
这很有效
<script type="text/javascript">
if(document.referrer.indexOf("http://example.com/") != -1) {
window.location = "http://www.youtube.com/watch?v=oHg5SJYRHA0?autoplay=1";
}
</script>