0

我的客户面临潜在的安全问题。有人在另一个不是我客户的网址上显示他们的网站。

经调查发现,不法分子正在使用frame标签在其域上显示客户的整个网站。

  • 我想问是否可以从客户的网站中提取任何用户信息?
  • 如果有任何编码可以防止框架被其他人用来显示客户的网站?
4

1 回答 1

1

你可以参考这个链接。这是一种解决方案。

if(top!=self){
    top.location.replace(document.location);
    alert("For security reasons, framing is not allowed; click OK to remove the frames.")
}

如何防止我的网站页面通过 iFrame 的第 3 方网站框架加载

于 2019-02-07T11:53:51.153 回答