V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
liudon
V2EX  ›  前端开发

谷歌广告 iframe 嵌入展示问题

  •  
  •   liudon · 16 天前 · 677 次点击
    我有一个页面 a.com/xxx ,被其他网站 b.com (非本人所有)通过 iframe 方式嵌入,如果我在我的页面上加入谷歌广告,其他网站 b.com 访问的时候会正常显示我的谷歌广告吗?
    mytsing520
        1
    mytsing520  
       16 天前
    在 head 里面加上
    <meta http-equiv="X-Frame-Options" content="DENY">,或<meta http-equiv="X-Frame-Options" content="SAMEORIGIN">来防止被 iframe
    liudon
        2
    liudon  
    OP
       15 天前
    @mytsing520 我是想确认下这种场景下,谷歌广告会正常展示吗?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3591 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 21ms · UTC 00:45 · PVG 08:45 · LAX 17:45 · JFK 20:45
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.