Prevent Search Engine Indexing of Angular 5 Website - Firebase

后端 未结 2 1168
悲&欢浪女
悲&欢浪女 2021-01-04 10:12

How do I prevent my Angular 5 site from being indexed by search engines? I don\'t understand the documentation on Firebase indexing, and it seems like it refers specifically

2条回答
  •  囚心锁ツ
    2021-01-04 11:08

    All references to robots.txt in the Firebase docs imply that you have to write it manually, and Google clearly states that a page without robots.txt will be indexed (or the robots meta tag or the X-Robots-Tag HTTP header). So yes, you'll have to write robots.txt manually.

    As for your request from official sources, usually companies do not document automations they do not offer, so it'll be hard to see a list of all the automation that Firebase does not do for you.

    Also, Angular does not create the robots.txt for you, but a quick look over the internet will show several tutorials explaining how to do so. Again, it is not documented that Angular does not do that, but if there was any automation... why would people post tutorials on how to do it manually? (Also, this rejected feature request.)

提交回复
热议问题