Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall
Stationmaster's work is the design exquisite website, for the populace displays the rich content of the website. Of course, we also want well-designed sites to get the ideal rankings, which requires us to study the rules of search engine rankings, the greatest degree to get the opportunity to show to the customer. However, there are many types of search engines, sometimes, we have a good ranking of a search engine, but on the other search engines do not get the same ranking, because the different search engine rules are different. To do this, someone copied the same content to deal with different search engine ranking rules. However, once the search engine found a large number of "clones" of the page, it will be punished, do not include these duplicate pages. On the other hand, the content of our website belongs to personal private files, not to be exposed to the search engine. At this time, robot.txt is to solve these two problems.
Search engine and its corresponding user
So, what are the search engines and their corresponding user? Below, I have listed some for reference.
Search Engine User
AltaVista Scooter
Baidu Baiduspider
Infoseek Infoseek
HotBot slurp
AOL Search Slurp
Excite Architextspider
Google Googlebot
Goto slurp
Lycos Lycos
MSN slurp
Netscape Googlebot
Northernlight Gulliver
WebCrawler Architextspider
Iwon slurp
Fast Fast
Directhit Grabber
Yahoo Web Pages Googlebot
LookSmart Web Pages slurp
Ii. Basic concepts of robots
Robots.txt file is a file of the website, it is to search engine spider to see. Search engine Spider Crawl Road Our site is the first to crawl this file, according to the contents of the site to determine the scope of access to the file. It can protect some of our files are not exposed to the search engine, thus effectively control the spider's crawl path, for our webmaster do a good job of SEO to create the necessary conditions. In particular, our site has just been created, some content is not perfect, temporarily do not want to be indexed by search engines.
Robots.txt can also be used in a directory. Search scope settings for files in this directory.
A few notes:
The website must have a robot.txt file.
The filename is a lowercase letter.
When you need to completely block the file, you need to match the meta's robots attribute.
The basic grammar of robots.txt
Basic format for content items: key: value pairs.
1) User key
The following content corresponds to the name of each specific search engine crawler. Such as Baidu is Baiduspider, Google is Googlebot.
Generally we write this:
User: *
That allows all search engine spiders to crawl. If you want to let a certain search engine spider crawling, list the name in the following. If multiple, write repeatedly.
Note: User: There is a space behind.
In the robots.txt, the key is followed by a number, followed by a space, and the value phase is separate.
2) Disallow key
This key is used to explain the URL path that does not allow search engine spiders to crawl.
Example: Disallow:/index.php prohibit Web index.php files
Allow key
The key description allows search engine spider crawling URL path
For example: Allow:/index.php allows Web site index.php
Wildcard character *
Represents any number of characters
For example: Disallow:/*.jpg Web site All jpg files were banned.
Terminator $
Represents a URL that ends with the preceding character.
For example: Disallow:/?$ Web site All end of the file is prohibited.
Iv. Case Analysis of robots.txt
Example 1. Prohibit all search engines from accessing any part of the site
User: *
Disallow:/
Example 2. Allow all search engines to access any part of the site
User: *
Disallow:
Example 3. Restrict baiduspider access to your Web site only
User-agent:baiduspider
Disallow:/
Example 4. Only allow Baiduspider to access your Web site
User-agent:baiduspider
Disallow:
Example 5. Prohibit spider access to specific directories
User: *
Disallow: CGI
Disallow:/tmp/
Disallow:/data/
Note: 1 three directories to write separately. 2 Please note that the last to bring a slash. 3 The difference between a slash and a slash.
Example 6. Allow access to partial URLs in a specific directory
I hope that the a directory only b.htm allowed access, how to write?
User: *
Allow:/a/b.htm
Disallow:/a/
Note: The permitted inclusion priority is higher than the prohibition.
Start with example 7 to illustrate the use of wildcard characters. Wildcard characters include ("$" terminator;
"*" any character)
Example 7. Disable access to all dynamic pages in a Web site
User: *
Disallow:/*?*
Example 8. Prevent search engines from crawling all the pictures on the site
User: *
Disallow:/*.jpg$
Disallow:/*.jpeg$
Disallow:/*.gif$
Disallow:/*.png$
Disallow:/*.bmp$
In many other cases, concrete analysis is needed. As long as you understand these grammatical rules and the use of wildcard characters, I believe that many situations can be solved.
V. Meta-robots tags
Meta is the label content in the head tag of a Web page HTML file. It prescribes this HTML file for the crawl rules with the search engine. Unlike Robot.txt, it is only for files written in this HTML.
Writing:
<meta name= "content="/>.
... The contents are listed below
NOINDEX-prevents the page from being indexed.
Nofollow-Prevents indexing of any hyperlinks in the page.
Noarchive-Does not save the page snapshot of the page.
Nosnippet-the page's summary information is not displayed in the search results, and the page snapshot of the page is not saved.
NOODP-Does not use descriptive information in open Directory Project as its summary information in search results.
VI. Testing of robots
In Google Webmaster tools, add a site after the use of the left side of the crawl tool permissions, you can test the site's robots, detailed see figure.
Robots.txt and Mtea are introduced to the contents of the robots here, I believe that we have a more detailed understanding of robot. The use of good robots for our site SEO has an important role, do a good job, can effectively shield those we do not want to search engine crawling pages, that is, the user experience is not high page, which will be conducive to keyword ranking inside the page to fully display a customer, to get the search engine on the site of the It will help us to do a better job of keyword rankings.
This article is written by Idsem Group Gizhigang Copyright Link: http://www.idsem.com Respect copyright reproduced please specify!!!