How to Hide a Particular website page URL from Search engines?

后端 未结 3 576
生来不讨喜
生来不讨喜 2021-01-19 04:16
  1. My project is an E-commerce website that It contains lot of static and dynamic pages. I want to hide only one page from Search engines. If any one search that
3条回答
  •  不思量自难忘°
    2021-01-19 04:47

    Add a file robots.txt in your website root directory with the following contents:

    User-agent: *
    Disallow: /users/download/id
    

    This approach basically tells the Search Engine not to index /users/download/id.

    This doesn't mean every Search Engine will do that, but most of the modern Search Engines will take in consideration that file.

提交回复
热议问题