IFrame 破坏文件 - 它们的用途是什么?

发布于 2024-08-12 04:20:20 字数 534 浏览 2 评论 0 原文

在查看一些广告公司(DoubleClick、Atlas)时,我遇到了 iframe Buster 文件的概念,这些文件与广告发布商托管在同一主机上(例如:http://www.adopstools.com/ibusters/atlas/atlas_rm.htm,并且有很多可以使用的JS代码该页面)。

我读到它们用于动态调整 iframe 的大小。这就是 iframe 破坏者的全部内容吗?将它们托管在发布者的主机上是否有助于解决 JS 跨域限制?

已添加:我指的是此处描述的用例:http:// blog.operative.com/?tag=iframe,而不仅仅是将 iframe 源文档更改为顶层。

Looking at a few advertising companies (DoubleClick, Atlas), I've come across the concept of iframe buster files, that are hosted on the same host as the ad publisher (one example: http://www.adopstools.com/ibusters/atlas/atlas_rm.htm, and there's a lot of JS code that works with that page).

I read that they're used to dynamically resize the iframe. Is that all there is to iframe busters? Does hosting them on publisher's host help with JS cross-domain restrictions?

Added: I'm referring to the use case described here: http://blog.operative.com/?tag=iframe, and not just changing the iframe source document to the top level.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

惜醉颜 2024-08-19 04:20:20

这是为了“接管广告”而完成的。我们使用 iframe(ADI - iframe 与 ADJ - javascript)有以下几个原因:

1 - 它们会减慢页面内容的加载速度。
2 - 它们可能会破坏您页面上的 JavaScript,导致您的页面停止正常运行。
3 - 最糟糕的情况:他们注入恶意代码。

使用 iframe (ADI) 方法,广告被隔离到自己的文档中,不会干扰主网页。

但是,在某些情况下,您的营销团队想要投放接管广告。它们是在 iframe 窗口之外展开的广告。对于这些广告,大多数顶级广告供应商都采用了“iframe 破坏”方法。这种方法要求您在您这边托管一个文件,广告可以与该文件交互并绕过浏览器的跨域限制。

以下是这些文件的完整列表:http://www.adopstools.com/?部分=杂项&页面=iframes

This is done for "take over ads". We use iframes (ADI - iframe vs ADJ - javascript) for a few reasons:

1 - they slow down the loading of your page content.
2 - they can break javascript on your page causing your page to stop functioning properly.
3 - worse case: they inject malicious code.

Using the iframe (ADI) approach the ads are isolated into their own document and can't interfere with the main web page.

However, there are cases when your marketing team wants to run take over ads. They are ads that expand outside their iframe window. For these ads the "iframe busting" approach was setup by most of the top advertising vendors. This approach requires you to host a file on your side that the ads can interact with and by pass the cross-domain restrictions of browsers.

Here is a comprehensive list of these files: http://www.adopstools.com/?section=miscellaneous&page=iframes

仙气飘飘 2024-08-19 04:20:20

iframe 破坏者旨在将网页从另一个页面内的 iframe 中分离出来,以便它们成为顶级页面,

例如如果我在这个答案中有一个 iframe,其中包含您的网站,那么您网站上的 iframe 破坏者的作用就是将您的网站从我的 iframe 中删除,并阻止我使用 iframe 来显示您的网站。

这与框架破坏者类似,其中网站可以包含在框架集中,顶部有第二个框架,显示挖掘栏或广告。在这种情况下,框架破坏器将强制浏览器显示网站,并且仅显示作者意图的网站,而不是在另一个框架中捆绑了潜在广告或恶意软件的框架中。

在提供的示例中,JavaScript 用于将脚本标签插入到执行实际帧破坏的第二个 JavaScript 文件中。链接的 html 文件中使用的 JavaScript 只是混淆了此过程,同时为不同的广告加载不同的 url,每个广告都有不同的 iframe html 要插入。

所用的长度很可能是猫捉老鼠的追逐因素,这在框架破坏技术中很常见,其中网站编写了脱离框架的脚本,而负责为网站设计框架的公司也编写了反框架破坏技术脚本,所以防反帧破坏脚本已经写好了。

iframe busters are intended to break a webpage out of an iframe inside another page so that they become the top level page

e.g. if I had an iframe in this answer with your site inside it, the role of an iframe buster on your site would be to bust your site out of my iframe and prevent me from using iframes to show your website

This is similar to frame busters, where a website may be encased in a frameset with a second frame up top showing a digg bar or advertisement. In this case, a frame buster would force the browser to display the website and only the website as intended by the author, rather than in a frame with potential advertisement or malware bundled in another frame.

In the provided example, the JavaScript is used to insert a script tag to a second JavaScript file which performs the actual frame busting. The JavaScript used in the html file linked simply obfuscates this process while loading different urls for different advertisements, each with different iframe html to insert.

The lengths gone to are likely to be a factor of a cat and mouse chase, as is common with frame busting techniques, where sites have written scripts to bust out of frames, and the companies responsible for framing the sites have written anti-frame busting scripts, so anti-anti-frame busting scripts have been written.

予囚 2024-08-19 04:20:20

Iframe Buster 用于帮助某些类型的富媒体广告素材发挥其全部功能。例如,如果将可扩展富媒体提供给 Iframe 而无法从 Iframe 中退出,则可扩展富媒体将不会扩展。

这就是 Iframe Buster 发挥作用的地方。

Iframe 破坏器的目的是让广告素材脱离发布商 Iframe,以便广告素材能够充分发挥作用。

通常它是一个需要放置在站点域上的文件夹中的文件。

www.yoursitename.com/folder/iframebuster.html该位置。

因此,每当您在 Iframe 中投放展开式广告时,都需要引用

Iframe Busters are used to help certain type of rich media creatives perform their full function. FOr example an Expandable rich media will not expand if served into an Iframe without being able to bust out of the Iframe.

This is where the Iframe Buster comes into play.

The purpose of the Iframe buster is to allow the creative to break out of the Publishers Iframes so the creative can be fully functional.

Typically it s a file which needs to be placed in a folder on the sites domain.

So www.yoursitename.com/folder/iframebuster.html

This location will need to be referenced whenever you serve an Expandable ad into the Iframe.

百变从容 2024-08-19 04:20:20

iFrame Buster 的作用是允许可展开的横幅出现在其广告单元尺寸之外。对于 rg。如果您有一个 300x250 的广告位,并且有一个 300x250 的广告横幅,当鼠标悬停或单击时该横幅会扩展至 300x500,那么 iFrame buster 会允许它打破 300x250 的边界,并为横幅提供扩展 300x500 的空间。

如果您有 Rich Media 广告素材(例如在 DART Studio 中托管和提供/设置的 Pushdown、PubBar 或 Expandable),则通常需要双击 iFrame buster。

Atlas 有自己的 iframe Buster 代码,MediaMind 有 addineyev2.html,类似的 FlashTalking 和其他公司也有自己的代码,这些代码需要托管在要运行广告的服务器上。

What the iFrame Buster does is it allows an expandable banner to come outside of it's Ad Unit dimension. For rg. if you have a 300x250 ad slots and you have an 300x250 ad banner that expands to 300x500 on mouse over or on click then iFrame buster allows it break that 300x250 boundaries and give room to the banner to expand by 300x500.

Doubleclick iFrame buster us generally required if you have a Rich Media Creative like a Pushdown, PubBar or Expandable being hosted and served/setup in DART Studio.

Atlas has their own iframe buster code, MediaMind has addineyev2.html and similarly FlashTalking and other have theirs which are required to be hosted on the server where the ads are going to run.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文