我的当事人正面临一个潜在的安全问题。有人正在显示他们的网站在另一个网站网址,这不是我的客户的。
经调查发现,这些不法分子正在使用frame标签在他们的域名上显示客户端的整个网站。
发布于 2019-02-07 11:53:51
你可以参考这个链接。这是一个解决办法。
if(top!=self){
top.location.replace(document.location);
alert("For security reasons, framing is not allowed; click OK to remove the frames.")
}How to prevent my site page to be loaded via 3rd party site frame of iFrame
https://stackoverflow.com/questions/54572656
复制相似问题