# \[Pro\] Disallow development server?

**URL:** <https://discourse.softpress.com/t/pro-disallow-development-server/16432>\
**Category:** Off Topic\
**Created:** [February 12, 2013, 3:59pm UTC](https://discourse.softpress.com/t/pro-disallow-development-server/16432 "2013-02-12T15:59:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![RavenManiac](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/r/91b2a8/32.png) [@RavenManiac](https://discourse.softpress.com/u/RavenManiac)\
**Post date:** [February 12, 2013, 3:59pm UTC](https://discourse.softpress.com/t/pro-disallow-development-server/16432/1 "2013-02-12T15:59:02Z")

</div>

How do I disallow all of the websites on my development server if the only way you access said sites is with a subdomain redirect that bypasses the root?

At present I have a robots.txt file in the root folder with the following code:

User-agent: \*

Disallow: /

* * *

offtopic mailing list  
email@hidden  
Update your subscriptions at:  
[http://freewaytalk.net/person/options](http://freewaytalk.net/person/options)

---

<div class="post-metadata">

**Author:** ![waltd](https://discourse.softpress.com/user_avatar/discourse.softpress.com/waltd/32/2720_2.png) [@waltd](https://discourse.softpress.com/u/waltd)\
**Post date:** [February 12, 2013, 4:19pm UTC](https://discourse.softpress.com/t/pro-disallow-development-server/16432/2 "2013-02-12T16:19:08Z")

</div>

Are you looking to avoid people being able to browse to [www.example.com/subdomain](http://www.example.com/subdomain) and force them to go to [subdomain.example.com](http://subdomain.example.com)? If so, you want an htaccess redirect, not a robots.txt. The robots file is purely for well-behaved spiders, and does nothing for normal browsers or spiders that are not well-behaved.

Google: mod\_rewrite redirect to subdomain

Walter

On Feb 12, 2013, at 10:59 AM, RavenManiac wrote:

> How do I disallow all of the websites on my development server if the only way you access said sites is with a subdomain redirect that bypasses the root?
> 
> At present I have a robots.txt file in the root folder with the following code:
> 
> User-agent: \*
> 
> Disallow: /
> 
> * * *
> 
> offtopic mailing list  
> email@hidden  
> Update your subscriptions at:  
> [http://freewaytalk.net/person/options](http://freewaytalk.net/person/options)

* * *

offtopic mailing list  
email@hidden  
Update your subscriptions at:  
[http://freewaytalk.net/person/options](http://freewaytalk.net/person/options)

---

<div class="post-metadata">

**Author:** ![RavenManiac](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/r/91b2a8/32.png) [@RavenManiac](https://discourse.softpress.com/u/RavenManiac)\
**Post date:** [February 12, 2013, 4:50pm UTC](https://discourse.softpress.com/t/pro-disallow-development-server/16432/3 "2013-02-12T16:50:35Z")

</div>

No, I just don’t want search engines to index my internal server.

* * *

offtopic mailing list  
email@hidden  
Update your subscriptions at:  
[http://freewaytalk.net/person/options](http://freewaytalk.net/person/options)

---

<div class="post-metadata">

**Author:** ![waltd](https://discourse.softpress.com/user_avatar/discourse.softpress.com/waltd/32/2720_2.png) [@waltd](https://discourse.softpress.com/u/waltd)\
**Post date:** [February 12, 2013, 5:03pm UTC](https://discourse.softpress.com/t/pro-disallow-development-server/16432/4 "2013-02-12T17:03:11Z")

</div>

Then what I would recommend is that you use your cPanel (or local equivalent) to set a simple password on that folder. Tell all your clients what it is. That will stop all crawlers cold, good and evil. Even better is to have a separate password for each client’s folder. It doesn’t have to be a serious password (it will be sent in plain text anyway) but just the fact that it is there will keep the honest folk honest, and will keep the bots out entirely.

Walter

On Feb 12, 2013, at 11:50 AM, RavenManiac wrote:

> No, I just don’t want search engines to index my internal server.
> 
> * * *
> 
> offtopic mailing list  
> email@hidden  
> Update your subscriptions at:  
> [http://freewaytalk.net/person/options](http://freewaytalk.net/person/options)

* * *

offtopic mailing list  
email@hidden  
Update your subscriptions at:  
[http://freewaytalk.net/person/options](http://freewaytalk.net/person/options)
