Can I block search crawlers for every site on an Apache web server?

前端 未结 6 1130
走了就别回头了
走了就别回头了 2021-01-31 05:13

I have somewhat of a staging server on the public internet running copies of the production code for a few websites. I\'d really not like it if the staging sites get indexed. <

6条回答
  •  野的像风
    2021-01-31 05:49

    To truly stop pages from being indexed, you'll need to hide the sites behind HTTP auth. You can do this in your global Apache config and use a simple .htpasswd file.

    Only downside to this is you now have to type in a username/password the first time you browse to any pages on the staging server.

提交回复
热议问题