chibineku Posted October 7, 2009 Share Posted October 7, 2009 I have a couple of scripts in my site that are borrowed or lifted - legally - from other sites, including this one, and there are comments which have to remain in tact. These comments contain links to the original site. Are these followed by web spiders? I want them to be, because I have found this site and Stu Nicholl's site extremely useful, and I am aware of the value of link equity. If not, I can create hotlinks and hide them or something.Edit: Hm, I found a spider simulator on seochat.com and it doesn't list the commented out links, but obviously that doesn't speak for every search engine's spiders. Link to comment Share on other sites More sharing options...
Synook Posted October 7, 2009 Share Posted October 7, 2009 Remember that PHP just generates HTML, so there is no difference between a "HTML link" and a "PHP link", because there is no such thing as a "PHP link".However, most spiders can't execute JavaScript. Also, it is against spec to read commented out markup. Link to comment Share on other sites More sharing options...
chibineku Posted October 8, 2009 Author Share Posted October 8, 2009 I know spiders don't execute javascript, and I know about php generating HTML, heh, I meant specifically if it's in comments, but that would rather defeat the purpose of them anyway I guess, if browsers went about trying to read them. I did a google search and the general feeling is the same - commented out links are not followed, so no link equity is generated. Link to comment Share on other sites More sharing options...
Synook Posted October 8, 2009 Share Posted October 8, 2009 Ah, sorry, slightly misunderstood the question. By the way, you can also use rel="nofollow" on an anchor tag to indicate to spiders that the link should be ignored. Link to comment Share on other sites More sharing options...
chibineku Posted October 8, 2009 Author Share Posted October 8, 2009 That I didn't know Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.