Robotsuses the robots.txt file to block or delete webpages

Source: Internet
Author: User
These two lines are considered as an entry in the file. You can add any number of entries as needed. You can add multiple Disallow rows and multiple User-agents to an entry.

Create a robots.txt file

The simplest robots.txt file uses two rules:

User-agent: a roaming bot that applies the following rules

Disallow: the URL to intercept

These two lines are considered as an entry in the file. You can add any number of entries as needed. You can add multiple Disallow rows and multiple User-agents to an entry.

Each part of the robots.txt file is independent, rather than built on the previous part. For example:

User-agent :*

Disallow:/folder1/

User-Agent: Googlebot

Disallow:/folder2/

In this example, only the URLs that match/folder2/are not crawled by Googlebot.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.