开发者

how to prevent Google from indexing the div placeholder for swfobject?

I'm using swfobject, and in the replacement div I have a message for those who don't have Flash or JS support.

The replacement div contains a message like "You don't have Flash player, please download here" - my concern here, is that Google will see and index this message, which is not relevant to the content of the page, and it's going to affect the search ranking.

Is there some way to mark a piece of content to be ignored by 开发者_StackOverflow社区Google? My guess is no.

But then how do you go about placing a message like this without having it indexed?

My only idea is to use an iframe with nofollow. But then Google will penalize any site that uses frames, so that's not a good option either.

Any ideas?


never tried this before but you could try and use googleon/googleoff

see link for more info.

http://www.geekzilla.co.uk/ViewC8614968-56ED-4729-9C12-F01677DAC412.htm

EDIT: Its only works for Google enterprise search. Sorry


As mentioned, the best option at this time seems to be to insert the message using JavaScript - I conclude that you can't get around the JS dependency.

Other posts suggest that Google is pretty good at identifying this type of message and ignoring it - so it may not be a big deal after all.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜