开发者

not malicious hidden link

开发者 https://www.devze.com 2023-01-28 16:29 出处:网络
hey i\'m using a jquery plugin Fancybox, which is a开发者_C百科 Lightbox type plugin. This plugin can only be triggered by clicking a link. I want to show the plugin on PostBack.

hey i'm using a jquery plugin Fancybox, which is a开发者_C百科 Lightbox type plugin.

This plugin can only be triggered by clicking a link. I want to show the plugin on PostBack.

I have no problem doing this programmatically. My concerns are purely from an SEO perspective. How can I add a hidden link that wouldn't be identified as trying to cheat Google and other search engines.


Simple answer is don't. Just add the no follow tag to the link e.g.

<a href="mylink" rel="nofollow">my link</a>

Goggle now wont follow it / it wont effect your SEO, also I would add the location to the robots .txt and make sure its not indexed.


I don't believe there is a sure fire way to do this (otherwise it would be exploited and then become bad practise again). Having said that it appears to be quite rare that this happens. I use hidden elements fairly frequently to ensure accessibility and I've not had a problem before.

Check out this post and comments for some additional thoughts.


You could use iframes. What's inside an iframe isn't indexed by engines. (at the movement) I know this is a step backwards in technology. It also isn't visible to screen readers. (not very accessible) There is extensive documentation showing that Google still indexes pages even if the link there says "nofollow"

0

精彩评论

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

关注公众号