Link to home
Create AccountLog in
Avatar of NextCode

asked on

hide an entire subdomain from search engines.

Hi experts, thank you in advance for anyone that can shed some light on this.

I design and develop small websites for clients and use sub-domains from my own website ( as development areas.

I was hoping to find a way to completely hide these sub-domains from search engines as the clients don't want content and designs that haven't been finalised seen by the general public.

It appears placing code in the robots.txt file is the best option for this (within each sub-domains folder) however I am not sure what to be putting here to hide the entire sub-domain or if this is even the best option.

I was hoping someone could advise of the best option for ensuring that sub-domains I want hidden are in fact hidden from search engines.

Thank you to anyone that is able to shed some light on this request.

Avatar of Geoff Kenyon
Geoff Kenyon
Flag of United States of America image

Link to home
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of NextCode


And that will work if I set the password on the total directory via CPANEL (won't allow other pages within that directory to be accessed either?
It should, all the pages are locked down correct?  As long as you password protect a directory and all the content in it, then you need the password, so search engines can't access it.
Thanks heaps, nice and simple solution.