Google’s John Mueller posted on Google+ an overview of how to take away your staging server from Google and then the best way to block it going ahead. Some contact it a staging server, some a enhancement server, some a testing server or some have all of these 3 and much more. Heck, we even have pentest servers here, so we require to block them cautiously from look for engines and open them to individuals that require accessibility.
Initial John discussed that if these servers do come across their content indexed by Google, the swiftest way to take away the content is by means of Google Research Console. Of system that indicates you require to verify the staging URL with Google Research Console, but that is only extensive enough until eventually you do the take away content system. Soon after that, you then want to shut the web page from the outside the house globe.
The swiftest way to get the staging web page taken off from look for is take away it by means of Research Console. For that, you require to verify possession by means of Research Console  (ironically, this indicates you’ll very likely have to make it accessible to look for engines all over again, or figure out DNS verification, which isn’t that prevalent but also not that difficult). From there, you can do a web page-elimination ask for , which will get the whole hostname out of Google’s look for for ca 90 days. All through this time, you can figure out and employ your normal strategy to block the staging web page from look for.
Then going ahead, you want to lock down accessibility to the server. John shared these suggestions, i.e. blocking on the server side with HTTP authentication or IP tackle whitelisting. He said all the other solutions he does not like. John wrote:
My suggestion for staging web-sites is to block accessibility on the server side, both with server-side / HTTP authentication  or IP tackle whitelisting (IP addresses can modify, and this would block you from making use of instruments from dwelling, etc, so it is worth getting careful there and whitelisting rather than blacklisting).
He shared much more details on Google+ incorporating that it is typical for URLs to not be recrawled in months, so if you include any block on the URL stage, it can simply get a 50 % 12 months or longer to be fully processed for all URLs.” “The web page-elimination ask for offers you most of that time, and you can post yet another just one need to you require to extend it,” he said.
Discussion board discussion at Google+.