Staging is beeing indexed
kyriakos-michael
PROOP

2 years ago

We have 2 environments.

One is production and one is staging.
We have domain connected for both via cloudflare.

We don't know why but our staging is being indexed in google.

How can we add a password protection to visit the staging site?
So that we prevent google from indexing staging site?

1 Replies

2 years ago

Authentication layers would need to be done by the application itself.

You could maybe write some middleware for your app that checks the environment and then enables or disables the auth based on your set rules.


Loading...