I want all my subdomains to not be indexed under my domain, that means when I search in Google for example.com to not appear in index test.example.com, but when I search test.example.com to be indexed.
Is it possible to add a Code in domain.com
robots.txt to not index the subdomains when search on google site:example.com?
Now if I search on Google site:example.com Google shows results for all my sub-domains, but I want results only for example.com and not test.example.com.
Only when I search site:test.example.com I want the results for the sub-domain.