Home  >  Article  >  Backend Development  >  网站如何排除谷歌的内容

网站如何排除谷歌的内容

WBOY
WBOYOriginal
2016-06-13 12:15:28980browse

网站怎么排除谷歌的内容
RT
网站里有些地方引用了google上的api啊,图片什么的,
怎么给他全找出来?

用笨办法: 编辑器里搜了把"google",有嫌疑的都排除了,
累的半死毫无成就感,
寻高手指点!
------解决思路----------------------
页面底部,缓冲html内容:$content = ob_get_clean;
正则过滤掉带google的链接
再输出$content
此方法同样可以用于页面中的url重写和敏感词过滤等等
不过治标不治本,想要干净的模板只能编辑器搜

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn