Google data for search and cloud services went astray for more than an hour on Monday thanks to an “ugly” mistake by an African ISP.
The data was sent the wrong way when MainOne Cable, in Nigeria, updated address books for key network hardware.
The update saw it claim to be the best way to reach millions of Google net addresses.
The mistake spread to other networks and led to Google traffic travelling via China and Russia.
In a tweet, MainOne said the mistake had been made during a “planned network upgrade”.
It added: “The error was corrected within 74 minutes and processes put in place to avoid reoccurrence.”
All the different networks that make up the internet constantly swap information about the best way to reach other parts of the global system.
Mistakes on one network can mean traffic is re-routed the wrong way.
A spokesman for the search giant told technology news website Ars Technica that all traffic sent the wrong way was encrypted, which should “limit” any damage caused by it being misdirected.
Later on Monday web company Cloudflare was hit by a second MainOne Cable mistake that also saw much of its traffic re-routed.
In a statement, Matthew Prince, chief executive of Cloudflare, said the mistake had probably been made as a result of a network meeting in Nigeria in early November.
The mistake that re-routed data had been made while a new data-sharing link had been being created, he said.
“This was a big, ugly screw-up,” he said. “Intentional route leaks we’ve seen to do things like steal crypto-currency are typically far more targeted.”
Mr Prince’s explanation defused earlier claims that the re-routing had been an attempt to steal data.