简体   繁体   English

如何隐藏搜索引擎中的特定网站页面URL?

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

  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 text then it need not display on search engine like "Google","Yahoo" etc. 如果任何一个搜索该文本,那么它不需要在搜索引擎上显示,如“谷歌”,“雅虎”等。

http://www.mysitename.com/users/download/id http://www.mysitename.com/users/download/id

The above url need to hide in search engines. 以上网址需要隐藏在搜索引擎中。

If any one searching my mysitename then above link also displaying in Google search as of now. 如果任何人搜索我的mysitename然后上面的链接也显示在谷歌搜索中。 what i can do for this ? 我能为此做些什么?

Add a file robots.txt in your website root directory with the following contents: 在您的网站根目录中添加文件robots.txt ,其中包含以下内容:

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

This approach basically tells the Search Engine not to index /users/download/id . 这种方法基本上告诉搜索引擎不要索引/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. 这并不意味着每个搜索引擎都会这样做,但大多数现代搜索引擎都会考虑该文件。

You can use Seo technique... 你可以使用Seo技术......

There is code you can put into your HTML which will prevent the bots from spidering your page(s). 您可以在HTML中添加代码,以防止机器人抓取您的网页。 This code is put in the header of your web page(s) (meaning between the and tags), in the form of a meta tag (and you thought meta tags were for keywords only). 此代码以元标记的形式放在网页的标题中(意思是和标记之间)(您认为元标记仅用于关键字)。

Here are four examples of how this code will look; 以下是此代码的外观的四个示例;

<meta name="robots" content="index,follow">
<meta name="robots" content="noindex,follow">
<meta name="robots" content="index,nofollow">
<meta name="robots" content="noindex,nofollow">
    <meta name="googlebot" content="noindex,nofollow,noarchive,nosnippet,noodp" />
    <meta name="robots" content="noindex,nofollow,noarchive,nosnippet,noodp" />

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM