Google’s John Mueller mentioned once more that the most effective methodology to dam Google from crawling after which indexing your staging website is to dam GoogleBot and different people with authentication. Immediate the entry request to the staging website 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 resolution by far.
Right here is John Mueller saying this on Twitter:
Utilizing authentication (username/password) makes it in order that you do not unintentionally add a blocking robots.txt or robots meta tag, and prevents the pages from being indexable. That is the most effective long-term resolution for staging websites.
— 🍌 John 🍌 (@JohnMu) April 5, 2021
Simply watch out along with your staging websites, you do not typically need Google to index them and you do not need to unintentionally push as much as manufacturing the mechanism you utilize to dam the on staging to manufacturing.
Discussion board dialogue at Twitter.