不被其他网站载入框架之内

有些网站例如收录类的网站会框架你的网站,那么如何解决呢?
<script language='JavaScript' type='text/JavaScript'>
//Made by 1st JavaScript Editor
//
http://www.yaldex.com
var fifteenth = 'http://yaldex.com'
if (document.referrer.indexOf(fifteenth) == -1) {
alert(
'You should come to this page from ' + fifteenth);
window.location
=fifteenth;}
</script>
原文地址:https://www.cnblogs.com/zq535228/p/1290453.html