Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

A better example url is https://www.google.com/search?q=site%3Ahttp%3A%2F%2Fwww.goog...

Note that switching //search to /search eliminates the phenomenon.

Note too that all the results on page 1 and page 10 are related to hostgator and coupon codes. I expect that there is some site which contains some text or links that cause these results.

Note also that the `site:` search operator isn't supposed to include anything but a domain or subdomain: no http:// nor /search should be included.

Finally, note that the results are actually google search pages, though! So I do think this is some kind of bug.

But NOT an instance of Google indexing its result pages. Please change the title to 'This one weird google bug will make you scratch your head!' :)

Edit: andybalholm suggests (on this page) that the double slash is in fact causing the googlebot to visit those search results page and indeed index them. Hm, sounds true.

Has anybody visited the spamfodder pages and found instances of malformed yet operative links to google search? (I don't feel like visiting those sites on this machine on this network.)




>Note also that the `site:` search operator isn't supposed to include anything but a domain or subdomain: no http:// nor /search should be included.

google recommends the site:example.com/path shortcut itself https://support.google.com/webmasters/answer/35256?hl=en

and it's ok to use, as site:example.com inurl:path could mean example.com/hudriwudri/path, too


I said that `site:` doesn't take full urls, just domains and subdomains.

Correction: this works as you (or a muggle) might expect: https://www.google.com/search?q=site:https:%2F%2Fgithub.com%...

...Though logically the operator should be named `page:` now. :)


>But NOT an instance of Google indexing its result pages.

That's what it looks like to me. Could you explain the difference?


I changed my tune at some point via seeing comments here. I posted a comment to that effect.

In hindsight, your comment alone would have changed my tune: nope, I can't explain the difference between a page appearing in search results and a page being indexed. Thanks for the illumination. :)


>This one weird google bug will make you scratch your head!

But that's clickbait! :)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: