Minihints

My Online NoteBook 
« Back to blog

屏蔽百度快照的方法

如果百度快照中缓存的文件为style.css,在服务器上编辑这个文件,在CSS文件中加入以下语句,即可控制百度缓存快照重定向,从而实现屏蔽百度网页快照内容的功能。

body {onload:expression(location.href='http://www.williamlong.info/');}

  以上语句在IE浏览器下测试通过。这个方法也可用于屏蔽Google等其他搜索引擎的网页快照。

Loading mentions Retweet

Comments (0)

Leave a comment...

 
Got an account with one of these? Login here, or just enter your comment below.
Posterous-login    twitter