{"id":80011,"date":"2026-06-19T14:20:20","date_gmt":"2026-06-19T08:50:20","guid":{"rendered":"https:\/\/2thenew.today\/blog\/?p=80011"},"modified":"2026-07-01T10:14:14","modified_gmt":"2026-07-01T04:44:14","slug":"why-your-testing-environment-might-already-be-on-google-and-how-to-fix-it","status":"publish","type":"post","link":"https:\/\/2thenew.today\/blog\/why-your-testing-environment-might-already-be-on-google-and-how-to-fix-it\/","title":{"rendered":"Securing Non-Production Environments from Search Engines"},"content":{"rendered":"<h2>Introduction<\/h2>\n<p>A few months ago I stumbled on something that made me feel like, &#8220;wait, what?&#8221; one of our testing sites was showing up in Google search results. It wasn&#8217;t supposed to be public, it was a playground for QA and developers, but there it was, indexed and discoverable.<\/p>\n<p>That little surprise led to a deep-dive into how search engines find non-production sites, why that&#8217;s risky, and how to stop it from happening again. The short version: the fix needs to start at the server, not in a spreadsheet or a PR comment.<\/p>\n<p>In this post I&#8217;ll walk through what happened, why it matters, and a practical, prioritized checklist you can use to protect your staging and testing environments.<\/p>\n<h2>How environments are typically organised<\/h2>\n<p>Most projects don&#8217;t run on a single site. Common environments include:<\/p>\n<ul>\n<li><strong>Development<\/strong> \u2014 where developers iterate and experiment.<\/li>\n<li><strong>QA<\/strong> \u2014 for testers to validate features and find bugs.<\/li>\n<li><strong>UAT<\/strong> \u2014 stakeholders and product owners double-check functionality.<\/li>\n<li><strong>Pre-production<\/strong> \u2014 a final dress rehearsal before release.<\/li>\n<li><strong>Production<\/strong> \u2014 the site your users actually visit.<\/li>\n<\/ul>\n<p>It&#8217;s easy to assume crawlers will only index your production site. They won&#8217;t. If a URL is publicly reachable, search engines can and will crawl it.<\/p>\n<h3>How Google found our testing site<\/h3>\n<p>There are a few common ways a non-production URL ends up indexed:<\/p>\n<ul>\n<li>Someone shares a link in chat or a public forum.<\/li>\n<li>A sitemap accidentally includes staging URLs.<\/li>\n<li>Third-party services or monitoring tools poke the site.<\/li>\n<li>Crawlers discover links from other sites or from previous exposure.<\/li>\n<\/ul>\n<p>In our case it was a combination of an exposed preview link and an openly accessible server. One quick search you can use to check indexing is:<\/p>\n<pre><code>site:staging.your-domain.com<\/code><\/pre>\n<h3>Why this is a problem?<\/h3>\n<p>A seemingly small leak can cause several practical headaches:<\/p>\n<ul>\n<li><strong>Unfinished features go public:<\/strong> Test pages can reveal prototypes or pre-release content.<\/li>\n<li><strong>Duplicate content:<\/strong> Search engines may be confused about which version should rank.<\/li>\n<li><strong>Confused users:<\/strong> Visitors may land on a broken or incomplete experience.<\/li>\n<li><strong>Security posture:<\/strong> Even harmless endpoints can expose internal patterns and URLs.<\/li>\n<\/ul>\n<h3>Step 1 \u2014 fix the root cause on the server<\/h3>\n<p>If you only ask Google to remove URLs while the site remains crawlable, they&#8217;ll often come back. The most reliable first step is to prevent crawling at the infrastructure level. With Nginx we added this header:<\/p>\n<pre><code>server {\r\n    # Prevent search engine indexing\r\n    add_header X-Robots-Tag \"noindex, nofollow\" always;\r\n}\r\n<\/code><\/pre>\n<p>The nice thing about an X-Robots-Tag is it applies regardless of your front-end framework \u2014 Angular, React, or a plain static site \u2014 since it&#8217;s a header served by the server.<\/p>\n<h3>Step 2 \u2014 verify ownership in Google Search Console<\/h3>\n<p>After you&#8217;ve blocked crawling, verify the environment in Google Search Console so you can request removals and track progress. The quickest verification method is an HTML tag, for example:<\/p>\n<pre><code>&lt;meta name=\"google-site-verification\" content=\"verification-code\" \/&gt;<\/code><\/pre>\n<p>Drop that into your head (for Angular put it in src\/index.html), deploy, then complete verification in the console.<\/p>\n<h3>Step 3 \u2014 request URL removal<\/h3>\n<p>With verification in place, use the Removals tool in Search Console:<\/p>\n<ol>\n<li>Open Search Console.<\/li>\n<li>Go to Removals and create a new request.<\/li>\n<li>Enter the exact URL or a prefix to remove multiple pages.<\/li>\n<li>Submit and monitor until Google confirms removal.<\/li>\n<\/ol>\n<h3>Step 4 \u2014 add front-end safeguards<\/h3>\n<p>As a belt-and-suspenders approach, add a robots meta tag to pages in non-production builds:<\/p>\n<pre><code>&lt;meta name=\"robots\" content=\"noindex,nofollow\" \/&gt;<\/code><\/pre>\n<p>This helps during short windows when server headers might not be fully rolled out or when a preview URL is temporarily exposed.<\/p>\n<h3>Step 5 \u2014 restrict access where possible<\/h3>\n<p>The most effective strategy is to keep non-production sites off the public internet entirely. Common options include:<\/p>\n<ul>\n<li>VPN-only access<\/li>\n<li>Single sign-on (SSO) protection<\/li>\n<li>Basic auth for quick protection<\/li>\n<li>IP whitelisting for internal teams<\/li>\n<\/ul>\n<p>If crawlers can&#8217;t access the site, they can&#8217;t index it.<\/p>\n<h3>Don&#8217;t forget production<\/h3>\n<p>While we lock down non-production environments, make sure your production site is discoverable: verify it in <strong>Search Console<\/strong>, publish a <strong>clean XML sitemap<\/strong>, and keep <strong>robots.txt<\/strong> and <strong>meta tags<\/strong> configured correctly.<\/p>\n<h2>Conclusion<\/h2>\n<p>Finding a staging site in search results was a reminder that search engines treat every reachable URL the same. The fix is pragmatic: start at the infrastructure level, verify ownership, request removals, then add front-end and access controls to avoid repeats.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction A few months ago I stumbled on something that made me feel like, &#8220;wait, what?&#8221; one of our testing sites was showing up in Google search results. It wasn&#8217;t supposed to be public, it was a playground for QA and developers, but there it was, indexed and discoverable. That little surprise led to a [&hellip;]<\/p>\n","protected":false},"author":1521,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":104,"footnotes":""},"categories":[5876],"tags":[955,8629,8630,1892,6961,5222,8623,8616,8615,8339,1336,8626,8621,8625,8617,8632,8624,404,8628,5536,6894,8620,8631,8614,8619,5221,8618,8633,8622,8627],"class_list":["post-80011","post","type-post","status-publish","format-standard","hentry","category-js","tag-angularjs","tag-deploymentbestpractices","tag-developertips","tag-devops","tag-devopsbestpractices","tag-frontenddevelopment","tag-googlecrawling","tag-googleindexing","tag-googlesearchconsole","tag-infrastructuremanagement","tag-nginx","tag-noindex","tag-productionenvironment","tag-robotsmetatag","tag-searchengineindexing","tag-searchengineoptimization","tag-searchvisibility","tag-seo","tag-siteoptimization","tag-softwaredevelopment","tag-softwareengineering","tag-stagingenvironment","tag-technicalblogging","tag-technicalseo","tag-testingenvironment","tag-webdevelopment","tag-websiteindexing","tag-websitemanagement","tag-websitesecurity","tag-xrobotstag"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"Introduction A few months ago I stumbled on something that made me feel like, &quot;wait, what?&quot; one of our testing sites was showing up in Google search results. It wasn&#039;t supposed to be public, it was a playground for QA and developers, but there it was, indexed and discoverable. That little surprise led to a\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Eram Fatima\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/2thenew.today\/blog\/why-your-testing-environment-might-already-be-on-google-and-how-to-fix-it\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"TO THE NEW BLOG\" \/>\n\t\t<meta property=\"og:type\" content=\"blog\" \/>\n\t\t<meta property=\"og:title\" content=\"Securing Non-Production Environments from Search Engines | TO THE NEW Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"Introduction A few months ago I stumbled on something that made me feel like, &quot;wait, what?&quot; one of our testing sites was showing up in Google search results. It wasn&#039;t supposed to be public, it was a playground for QA and developers, but there it was, indexed and discoverable. That little surprise led to a\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/2thenew.today\/blog\/why-your-testing-environment-might-already-be-on-google-and-how-to-fix-it\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/2thenew.today\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/2thenew.today\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@tothenew\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Securing Non-Production Environments from Search Engines | TO THE NEW Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Introduction A few months ago I stumbled on something that made me feel like, &quot;wait, what?&quot; one of our testing sites was showing up in Google search results. It wasn&#039;t supposed to be public, it was a playground for QA and developers, but there it was, indexed and discoverable. That little surprise led to a\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/2thenew.today\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/why-your-testing-environment-might-already-be-on-google-and-how-to-fix-it\\\/#article\",\"name\":\"Securing Non-Production Environments from Search Engines | TO THE NEW Blog\",\"headline\":\"Securing Non-Production Environments from Search Engines\",\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/eram-fatima\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"},\"datePublished\":\"2026-06-19T14:20:20+05:30\",\"dateModified\":\"2026-07-01T10:14:14+05:30\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/why-your-testing-environment-might-already-be-on-google-and-how-to-fix-it\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/why-your-testing-environment-might-already-be-on-google-and-how-to-fix-it\\\/#webpage\"},\"articleSection\":\"JS, AngularJS, DeploymentBestPractices, DeveloperTips, devops, DevOpsBestPractices, FrontendDevelopment, GoogleCrawling, GoogleIndexing, GoogleSearchConsole, InfrastructureManagement, nginx, NoIndex, ProductionEnvironment, RobotsMetaTag, SearchEngineIndexing, SearchEngineOptimization, SearchVisibility, SEO, SiteOptimization, softwaredevelopment, SoftwareEngineering, StagingEnvironment, TechnicalBlogging, TechnicalSEO, TestingEnvironment, WebDevelopment, WebsiteIndexing, WebsiteManagement, WebsiteSecurity, XRobotsTag\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/why-your-testing-environment-might-already-be-on-google-and-how-to-fix-it\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/js\\\/#listItem\",\"name\":\"JS\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/js\\\/#listItem\",\"position\":2,\"name\":\"JS\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/js\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/why-your-testing-environment-might-already-be-on-google-and-how-to-fix-it\\\/#listItem\",\"name\":\"Securing Non-Production Environments from Search Engines\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/why-your-testing-environment-might-already-be-on-google-and-how-to-fix-it\\\/#listItem\",\"position\":3,\"name\":\"Securing Non-Production Environments from Search Engines\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/js\\\/#listItem\",\"name\":\"JS\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\",\"name\":\"TO THE NEW Blog\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/eram-fatima\\\/#author\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/eram-fatima\\\/\",\"name\":\"Eram Fatima\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/why-your-testing-environment-might-already-be-on-google-and-how-to-fix-it\\\/#authorImage\",\"url\":\"https:\\\/\\\/newersworld-sf-static.tothenew.net\\\/prod\\\/profilePicFolder\\\/87336e29-5f60-4571-ab6e-b0a391a2c0a7_3048-Eram-Fatima-PROFILEPICTURE.jpeg\",\"width\":96,\"height\":96,\"caption\":\"Eram Fatima\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/why-your-testing-environment-might-already-be-on-google-and-how-to-fix-it\\\/#webpage\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/why-your-testing-environment-might-already-be-on-google-and-how-to-fix-it\\\/\",\"name\":\"Securing Non-Production Environments from Search Engines | TO THE NEW Blog\",\"description\":\"Introduction A few months ago I stumbled on something that made me feel like, \\\"wait, what?\\\" one of our testing sites was showing up in Google search results. It wasn't supposed to be public, it was a playground for QA and developers, but there it was, indexed and discoverable. That little surprise led to a\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/why-your-testing-environment-might-already-be-on-google-and-how-to-fix-it\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/eram-fatima\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/eram-fatima\\\/#author\"},\"datePublished\":\"2026-06-19T14:20:20+05:30\",\"dateModified\":\"2026-07-01T10:14:14+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\",\"name\":\"TO THE NEW Blog\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Securing Non-Production Environments from Search Engines | TO THE NEW Blog","description":"Introduction A few months ago I stumbled on something that made me feel like, \"wait, what?\" one of our testing sites was showing up in Google search results. It wasn't supposed to be public, it was a playground for QA and developers, but there it was, indexed and discoverable. That little surprise led to a","canonical_url":"https:\/\/2thenew.today\/blog\/why-your-testing-environment-might-already-be-on-google-and-how-to-fix-it\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/2thenew.today\/blog\/why-your-testing-environment-might-already-be-on-google-and-how-to-fix-it\/#article","name":"Securing Non-Production Environments from Search Engines | TO THE NEW Blog","headline":"Securing Non-Production Environments from Search Engines","author":{"@id":"https:\/\/2thenew.today\/blog\/author\/eram-fatima\/#author"},"publisher":{"@id":"https:\/\/2thenew.today\/blog\/#organization"},"datePublished":"2026-06-19T14:20:20+05:30","dateModified":"2026-07-01T10:14:14+05:30","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/2thenew.today\/blog\/why-your-testing-environment-might-already-be-on-google-and-how-to-fix-it\/#webpage"},"isPartOf":{"@id":"https:\/\/2thenew.today\/blog\/why-your-testing-environment-might-already-be-on-google-and-how-to-fix-it\/#webpage"},"articleSection":"JS, AngularJS, DeploymentBestPractices, DeveloperTips, devops, DevOpsBestPractices, FrontendDevelopment, GoogleCrawling, GoogleIndexing, GoogleSearchConsole, InfrastructureManagement, nginx, NoIndex, ProductionEnvironment, RobotsMetaTag, SearchEngineIndexing, SearchEngineOptimization, SearchVisibility, SEO, SiteOptimization, softwaredevelopment, SoftwareEngineering, StagingEnvironment, TechnicalBlogging, TechnicalSEO, TestingEnvironment, WebDevelopment, WebsiteIndexing, WebsiteManagement, WebsiteSecurity, XRobotsTag"},{"@type":"BreadcrumbList","@id":"https:\/\/2thenew.today\/blog\/why-your-testing-environment-might-already-be-on-google-and-how-to-fix-it\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog#listItem","position":1,"name":"Home","item":"https:\/\/2thenew.today\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog\/category\/js\/#listItem","name":"JS"}},{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog\/category\/js\/#listItem","position":2,"name":"JS","item":"https:\/\/2thenew.today\/blog\/category\/js\/","nextItem":{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog\/why-your-testing-environment-might-already-be-on-google-and-how-to-fix-it\/#listItem","name":"Securing Non-Production Environments from Search Engines"},"previousItem":{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog\/why-your-testing-environment-might-already-be-on-google-and-how-to-fix-it\/#listItem","position":3,"name":"Securing Non-Production Environments from Search Engines","previousItem":{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog\/category\/js\/#listItem","name":"JS"}}]},{"@type":"Organization","@id":"https:\/\/2thenew.today\/blog\/#organization","name":"TO THE NEW Blog","url":"https:\/\/2thenew.today\/blog\/"},{"@type":"Person","@id":"https:\/\/2thenew.today\/blog\/author\/eram-fatima\/#author","url":"https:\/\/2thenew.today\/blog\/author\/eram-fatima\/","name":"Eram Fatima","image":{"@type":"ImageObject","@id":"https:\/\/2thenew.today\/blog\/why-your-testing-environment-might-already-be-on-google-and-how-to-fix-it\/#authorImage","url":"https:\/\/newersworld-sf-static.tothenew.net\/prod\/profilePicFolder\/87336e29-5f60-4571-ab6e-b0a391a2c0a7_3048-Eram-Fatima-PROFILEPICTURE.jpeg","width":96,"height":96,"caption":"Eram Fatima"}},{"@type":"WebPage","@id":"https:\/\/2thenew.today\/blog\/why-your-testing-environment-might-already-be-on-google-and-how-to-fix-it\/#webpage","url":"https:\/\/2thenew.today\/blog\/why-your-testing-environment-might-already-be-on-google-and-how-to-fix-it\/","name":"Securing Non-Production Environments from Search Engines | TO THE NEW Blog","description":"Introduction A few months ago I stumbled on something that made me feel like, \"wait, what?\" one of our testing sites was showing up in Google search results. It wasn't supposed to be public, it was a playground for QA and developers, but there it was, indexed and discoverable. That little surprise led to a","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/2thenew.today\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/2thenew.today\/blog\/why-your-testing-environment-might-already-be-on-google-and-how-to-fix-it\/#breadcrumblist"},"author":{"@id":"https:\/\/2thenew.today\/blog\/author\/eram-fatima\/#author"},"creator":{"@id":"https:\/\/2thenew.today\/blog\/author\/eram-fatima\/#author"},"datePublished":"2026-06-19T14:20:20+05:30","dateModified":"2026-07-01T10:14:14+05:30"},{"@type":"WebSite","@id":"https:\/\/2thenew.today\/blog\/#website","url":"https:\/\/2thenew.today\/blog\/","name":"TO THE NEW Blog","inLanguage":"en-US","publisher":{"@id":"https:\/\/2thenew.today\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"TO THE NEW BLOG","og:type":"blog","og:title":"Securing Non-Production Environments from Search Engines | TO THE NEW Blog","og:description":"Introduction A few months ago I stumbled on something that made me feel like, &quot;wait, what?&quot; one of our testing sites was showing up in Google search results. It wasn't supposed to be public, it was a playground for QA and developers, but there it was, indexed and discoverable. That little surprise led to a","og:url":"https:\/\/2thenew.today\/blog\/why-your-testing-environment-might-already-be-on-google-and-how-to-fix-it\/","og:image":"https:\/\/2thenew.today\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","og:image:secure_url":"https:\/\/2thenew.today\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","twitter:card":"summary","twitter:site":"@tothenew","twitter:title":"Securing Non-Production Environments from Search Engines | TO THE NEW Blog","twitter:description":"Introduction A few months ago I stumbled on something that made me feel like, &quot;wait, what?&quot; one of our testing sites was showing up in Google search results. It wasn't supposed to be public, it was a playground for QA and developers, but there it was, indexed and discoverable. That little surprise led to a","twitter:image":"https:\/\/2thenew.today\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png"},"aioseo_meta_data":{"post_id":"80011","title":null,"description":null,"keywords":[],"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":[],"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"limit_modified_date":false,"created":"2026-06-05 20:11:34","updated":"2026-07-01 04:44:15","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/2thenew.today\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/2thenew.today\/blog\/category\/js\/\" title=\"JS\">JS<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tSecuring Non-Production Environments from Search Engines\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/2thenew.today\/blog"},{"label":"JS","link":"https:\/\/2thenew.today\/blog\/category\/js\/"},{"label":"Securing Non-Production Environments from Search Engines","link":"https:\/\/2thenew.today\/blog\/why-your-testing-environment-might-already-be-on-google-and-how-to-fix-it\/"}],"_links":{"self":[{"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/posts\/80011","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/users\/1521"}],"replies":[{"embeddable":true,"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/comments?post=80011"}],"version-history":[{"count":7,"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/posts\/80011\/revisions"}],"predecessor-version":[{"id":80385,"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/posts\/80011\/revisions\/80385"}],"wp:attachment":[{"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/media?parent=80011"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/categories?post=80011"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/tags?post=80011"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}