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 2 years ago
How is the best way to avoid a subdomain being indexed?
2 Answers
Fajal Shah answered 2 years ago
noindex tags in the code of the pages. Doing it in robots.txt won't stop GoogleBot many times.
Poonam Sharma answered 2 years 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.