Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Hide "dev" website from public

Hi,

I make websites for small businesses, and I have a set development flow.

The "dev" branch of my repositories deploys websites to a domain: dev.example.com

The "prod" branch of my repositories deploys websites to the prod domain: example.com

I treat "dev" as a testing area for new features, and once tested in "dev", I push those features into "prod".

I am wondering, how can I hide my "dev" websites from the general public?

Currently, I disallow all pages in my robots.txt for the "dev" sites.

Is there a way that I can have the "dev" site only available on my LAN? I just have a home router setup.

Does anyone have any idea of how my flow or process can be better?

1 2 301