How to block subdomain in Robots.txt

SusanSmithSusanSmith subscriber Posts: 18 Bronze Level Member
User-agent: * Disallow: / ================= This is how my current robots.txt file looks like. I want to block a subdomain (i.e http://subdomain.mywebsite.com) using robots.txt, I don't want even a single page of my subdomain to be indexed in Google. I added the above text to prevent my Subdomain from indexing... but it still got indexed into Google. What should I do to entirely prevent my Subdomain from Indexing.

Comments

Sign In or Register to comment.