0

Can we restrict access to website with firebase hosting to prevent search engine indexing? This would be helpful for dev/staging environments.

Something like AWS Amplify restricting access https://docs.aws.amazon.com/amplify/latest/userguide/access-control.html

Amr Salama
  • 802
  • 1
  • 7
  • 19

1 Answers1

2

You can control whether a crawler indexes your site with the usual robots.txt instructions. Note that this file is not specific to Firebase Hosting, and commonly used to control if/what parts of a site bots crawl.

But aside from that, there is no way to control access to the files in Firebase Hosting; all files are world-readable.

See also:

Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807