Dumb SEO Questions

(Entry was posted by Lukasz Rogala on this post in the Dumb SEO Questions community on Facebook, 12/30/2015).

Does Google index URLs if they are commented in code?

Hi guys - I got a question related into indexing URLs.

We all know that Google can index URLs even if link isn`t clickable /active (just text).

But my question is - does Google index URLs if they are commented in code (with )?

I didn`t notice that but would like to have an confirmation from experts like you. :) have anybody test that?
This question begins at 00:04:24 into the clip. Did this video clip play correctly? Watch this question on YouTube commencing at 00:04:24
Video would not load
I see YouTube error message
I see static
Video clip did not start at this question

YOUR ANSWERS

Selected answers from the Dumb SEO Questions Facebook & G+ community.

  • ?ukasz Rogala: Hi guys - I got an question related into indexing URLs.

    We all know that Google can index URLs even if link isn't clickable /active (just text).

    But my question is - does Google index URLs if they are commented in code (with <!-- -->)?

    I didn't notice that but would like to have an confirmation from experts like you. :) have anybody test that?
  • Dave Elliott: never tested it but i'd absolutely assume so.
  • ?ukasz Rogala: Interesting. I'm looking at the URL which was commented in the code and no indexation at all.
  • Federico Sasso: I'm quite sure it doesn't.
    Attempting to parse inactive URLs for discovery purpose makes sense because they often are badly written A tags, but URLs in comments? They are not meant to be shown to users and clicked anyway.
    We should also keep in mind that adding stuff within HTML comments was an old-days common spamming technique and search engines have long time ago learnt to deal with it by ignoring HTML comments.
  • ?ukasz Rogala: Same thoughts Federico. But there are some misunderstoods in Poland about that and would like to clarify everything with other experts abroad.
  • Dave Elliott: There is no way it will be a ranking factor..... but indexation. i would assume google does, why wouldn't it follow anything that looks like a url to try and discover if it exists or not.
  • ?ukasz Rogala: We have to test that
  • Federico Sasso: Agree, we have to test that :)
  • Micah Fisher-Kirshner: Generally it's seen as a no (see: https://productforums.google.com/forum/#!topic/webmasters/bUGYplqmBpA), but I'm not aware of anyone publicly testing this.
  • ?ukasz Rogala: Well I do think Google doesn't care about it at all - if it would we could be ale to google URLs based on HTML comments in code.
  • Amit Kumar: Interesting question, never tested, as I know just like other text in html comment tags are ignore by Google, URLs are also ignore
  • ?ukasz Rogala: It's 12 hours now since I've started testing and:
    1. Text URL/not clickable URL still not indexed.
    2. Commented URL still not Indexed.

    Both URLs haven't been opened with Chrome which would ping the URL to Google and probably index it.
  • Amit Kumar: Now if I have a anchor text in html comment tag, will it be index or not ? +Łukasz Rogala ;
  • ?ukasz Rogala: Not.
  • Suraj Gadage: Answer to the question is may be yes and may be no. I would like t hear it from the horse's mouth. Because I remember watching (a year ago) one of the Google Webmaster Hangouts video and someone confirming that even if a link is NoFollow, Google may crawl the link with an intention of discovering new content. ;
  • Chase Reiner: Google doesn't index comments.
  • Jim Munro: From the expert panel in this week's SEO Questions hangout on air on 00:04:24 into the YouTube video: https://dumbseoquestions.com/q/does_google_index_urls_if_they_are_commented_in_code +Łukasz Rogala

    If our assistance with this issue was useful to you, please consider sharing your success story so that others might benefit.
    
  • ?ukasz Rogala: I love the way you are pronauncing my name Jim. :D
  • Jim Munro: Spell it for me phonetically and I will try to do better, mate. :)
  • ?ukasz Rogala: You do it great Jim - really. :)

View original question in the Dumb SEO Questions community on Facebook, 12/30/2015).

CATEGORIES

SQLSTATE[HY000]: General error: 2006 MySQL server has gone away
SELECT NewsNoSpaces FROM news left join category on news.newscategory=category.categoryid where category.categoryNoSpaces=:catnospa order by newsid DESC limit 1;SQLSTATE[HY000]: General error: 2006 MySQL server has gone away
SELECT NewsNoSpaces FROM news left join category on news.newscategory=category.categoryid where category.categoryNoSpaces=:catnospa order by newsid DESC limit 1;

All Questions in this Hangout

SQLSTATE[HY000]: General error: 2006 MySQL server has gone away
SELECT questionTitle,questionNoSpaces from questions where questionWeeklySerialNumber=:postID order by questionYoutubeLinkCueTime asc;