Stop part of page being index by search engines?

我只是一个虾纸丫 提交于 2020-01-06 19:59:13

问题


How can I stop search engines indexing part of my page? Is there an HTML5 element for this?

Its just a line of text that I want to hide (a co-worker doesnt want their name on google for some reason). Im thinking that I could inject the text with javascript, but I have heard google does sometimes look inside javascript files.

I also thought of using images instead of text, but im concerned how this will look cross device and platform. Ive noted text rendering can differ on mac and pc and thats before ive had to think about mobile devices, retina displays, etc.

Thanks


回答1:


You can't hide content unless you use the methods you've already outlined above. Your best bet is to use JavaScript in an external file and then block that file using robots.txt.



来源:https://stackoverflow.com/questions/11410603/stop-part-of-page-being-index-by-search-engines

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!