title: Prevent googlebot from indexing other domains on same hosting account
body: <p>I have a hosting account which is used to host 3 websites.
  All 3 websites are independent of each other.</p>
  
  <p>The hosting account is linked to main domain .lets call it www.maindomain.com and the files of this website are on the root of the hosting.</p>
  
  <p>the other two domains www.domainA.com and www.domainB.com are linked to subfolders domainA and domainB respectively.</p>
  
  <p>google shows www.maindomain.com/domainA and www.maindomain.com/domainB in search results of maindomain.com even though domainA and domainB have nothing to do with that website except the fact that they are hosted in same hosting account.</p>
  
  <p>How can I prevent googlebot from indexing domainA and domainB subfolders when crawling maindomain.com .
  Can I used robots.txt and prevent subfolder crawling (but will it stop google from indexing www.domainA and www.domainB as a separate entity?)</p>