How do iframe busters for expandable ads work?

╄→尐↘猪︶ㄣ 提交于 2019-12-04 12:37:11
Justin Haygood

The HTML file allows the ad vendor to load their own javascript on the domain of the hosting HTML file. Normally, its a 3 step process.

  1. Ad loads within an iframe on an ad server domain (ads.adserver.com) versus the site domain (www.example.com).
  2. Ad detects its in such an iframe and loads in yet another iframe to an HTML file on www.example.com, passing in parameters to the HTML file
  3. HTML file then in turns loads in the ad (first finding the iframe the ad was loading in to determine location) and places it on the parent website DOM structure, which it has access to thanks to the fact that it is the same domain.
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!