Cross Domian iFrame Exceptions 跨域iFrame屏蔽例外
来源:互联网 发布:中国人工智能产品展会 编辑:程序博客网 时间:2024/06/07 08:51
var frameBustingRegex = /^(https?:\/\/)?(www|beta)\.foo1\.com(\/.*|$)|^(https?:\/\/)?www\.foo2\.com(\/.*|$)|www\.foo3\.com/;
if (self != top) {
var httpUrlHost= ServerSide.URLHOST
var httpRefHost=ServerSide.UrlReferrer.Host
if(httpRefHost)
{
var httpReferer=ServerSide.Refer
if(httpUrlHost!=httpRefHost
&&!frameBustingRegex.test(httpReferer))
{
top.location = self.location;
}
}
}
- Cross Domian iFrame Exceptions 跨域iFrame屏蔽例外
- 屏蔽iframe中的超链接
- 例外 Exceptions
- iframe
- Iframe
- iframe
- iframe
- iframe
- IfRame
- iframe
- iframe
- iframe
- iframe
- iframe
- iframe
- iframe
- iframe
- iframe
- hdu - 2851 - Lode Runner(Dijkstra)
- Jungle Roads hdu1301 Prim
- win7 wifi
- JAVA中this用法小结
- Centos下安装并配置ODBC连接MySQL
- Cross Domian iFrame Exceptions 跨域iFrame屏蔽例外
- Shell 脚本基础——编写运行
- 用java的BigDecimal来做POJ 1001题
- Quicker.em在Source Insight中的应用
- vim配置文件.vimrc
- 智能显示输入的剩余字符
- Delphi字符串操作的常用函数三
- Bash Shell 启动配置文件
- Eclipse JDT之APT那些事之一