Google’s John Mueller mentioned once more that the perfect technique to dam Google from crawling after which indexing your staging web site is to dam GoogleBot and different people with authentication. Immediate the entry request to the staging web site by requiring them to enter a sound username and password to entry the staging surroundings.
I imagine most builders and SEOs know this by now, however it’s the greatest answer by far.
Right here is John Mueller saying this on Twitter:
Utilizing authentication (username/password) makes it in order that you do not by chance add a blocking robots.txt or robots meta tag, and prevents the pages from being indexable. That is the perfect long-term answer for staging websites.
— 🍌 John 🍌 (@JohnMu) April 5, 2021
Simply watch out together with your staging websites, you do not usually need Google to index them and you do not need to by chance push as much as manufacturing the mechanism you utilize to dam the on staging to manufacturing.
Discussion board dialogue at Twitter.