只允许,同一域名下IFRAME,禁止直接访问页面
/*
*只允许,同一域名下IFRAME
*凨来了
*/
var url='指定的iframe页面';
if ((parent.window.location.host != window.location.host) && (top.window.location.href != window.location.href)) {
top.window.location.href = url;
}else if(top==self){
<span > </span>top.window.location.href = url;
}
最后更新:2017-04-03 07:56:55