Search Engine Roundtable· barry@rustybrick.com (Barry Schwartz)·· 16 天前AI 评分18
Google 的 John Mueller 讲解如何用 robots.txt 阻止弹窗在搜索中显示
Google On How To Block Popups Using Robot.txt In Search
AI 导读
Google 的 John Mueller 回应 Reddit 提问时表示,用 robots.txt 屏蔽弹窗所在域名(如 verificationpopup.com)的抓取,通常可阻止 Googlebot 在渲染页面时加载该弹窗内容。若弹窗由特定 JS 文件加载,也可在自家站点 robots.txt 中屏蔽该脚本文件;但他提醒,若只有一个承担多项功能的 JS 文件,不建议这样做。
来源:Search Engine Roundtable · seroundtable.com