一、禁止百度转码
禁止百度转码的做法很简单,直接在head部分加入如下META申明即可:
<meta http-equiv=“Cache-Control” content=“no-transform” />
<meta http-equiv=“Cache-Control” content=“no-siteapp” />
二、禁止百度快照缓存
具体做法:将如下代码加入到head部分即可:
<meta name=“Baiduspider” content=“noarchive”>
当然,如果要针对所有搜索引擎,只要将Baiduspider改成robots即可。
修改后,并不会立即生效,得等到百度刷新数据才能看的效果:点击搜索结果中的百度快照,将直接跳转到源站。
发表评论: