How do I stop a subdomain from indexing?

ForumCategory: SEO - On-Page & Off-PageHow do I stop a subdomain from indexing?
Mohammad Athar Staff asked 1 year ago
How is the best way to avoid a subdomain being indexed?
2 Answers
Fajal Shah answered 1 year ago
noindex tags in the code of the pages. Doing it in robots.txt won't stop GoogleBot many times.
Poonam Sharma answered 1 year ago
Password protect it and even then if there are links, google will add the url anyhow and just mark it blocked by robots txt.