Thumbnail: stack-overflow

Has Stack Overflow been hijacked?

by on under News
2 minute read

Something funny seems to be happening with Google and Stack Overflow.

I first noticed this last night when on my Macbook at home. I went to, typed in “stackoverflow” and was presented by the usual page. However I noticed that the url displyed under the link on the search results said When clicking the link it took me to instead of I thought to myself that this was probably just a temporary issue and went to the correct url myself.

But when I got to work this morning and logged onto my RHEL box and tried to get onto Stack Overflow again I went to (well used firefox’s search bar) and typed “stackoverflow” and again I have been presented with the result but linking to

Google Search for Stack Overflow

It seems that is the page for “Office of Inspector General” and appears to be a very harmless US government website.

DOI Website

I did a quick search for “stackoverflow doioig” (as you can see in the screenshots) to see if anyone else had seen this issue but there is nothing in the search that appears relevant at time of writing.

So I am curious to know if this is an accidental hijacking of stackoverflow’s result on google, it has the correct page description and everything which is odd, or whether something more interesting is happening at google.

Update 11/03/2013 It appears the the answer has been found here It seems that the website has been replaced with a new site and so the developer put in some redirect code. They must’ve not know how to do this redirect and looked it up on stackoverflow. They copied the code from here and updated the url to the new website. However they only updated one url. The code from stackoverflow has an html redirect using the refresh tag and also a javascript redirect using window.location. They updated the url in the window.location but left the example stackoverflow url in the html refresh. So anybody with javascript enabled in their browser was taken to the new website but if you had javascript disabled (as googlebot does) it would have redirected you to This website must have has a high page rank and lots of influence and therefore google updated their listing to show as stackoverflow’s new url. Google have since rectified this and the search now shows up the correct website.

Google, Hijack, Stack Overflow
Spotted a mistake in this article? Why not suggest an edit!
comments powered by Disqus