• Administration
  • Spanish Classes
  • Society.
  • Culture.
  • English
    • Arabic
    • Bulgarian
    • Croatian
    • Czech
    • Danish
    • Dutch
    • English
    • Estonian
    • Finnish
    • French
    • Georgian
    • German
    • Greek
    • Hebrew
    • Hindi
    • Hungarian
    • Indonesian
    • Italian
    • Japanese
    • Korean
    • Latvian
    • Lithuanian
    • Norwegian
    • Persian
    • Polish
    • Portuguese
    • Romanian
    • Russian
    • Serbian
    • Slovak
    • Slovenian
    • Swedish
    • Thai
    • Turkish
    • Ukrainian
  • Twitter
  • Facebook
  • Instagram
  • Robots.txt example
    • Science.
    • Get To Know Us
    • Psychology. Top Definitions
    • History. Top Definitions

    Robots.txt example

    Html   /   by admin   /   July 04, 2021

    Website owners use the /robots.txt file to give instructions about their site to bots from search engines such as Google, Yahoo, Bing, etc.

    The system works simple, if a robot wants to visit the URL for example: https://www.ejemplode.com/ Before doing so, check out https://www.ejemplode.com/robots.txt and its content is fixed. Through the robots.txt content, bots are instructed not to index, or access certain files. It can be specific, for example, that certain bots do not enter, but others do.

    There are two important considerations when using /robots.txt:

    • Robots can ignore your robots.txt. Especially malware robots that scan the web for vulnerabilities, and email address scanners used to send spam.
    • The robots.txt file is publicly available. Anyone can see the content of your robots.txt

    So don't use robots.txt to hide information. Rather, use it so that certain content on your site is not indexed.

     Here are several example robots.txt with their explanation

    Code:
    User-agent: * Disallow: /

    This code makes all robots unable to access any content on the site. The User-agent parameter is to specify the robots, in this case with the asterisk, we point to all of them. And Disallow is so they can't access. In this case, doing a Disallow in /, the robots cannot access anywhere.

    instagram story viewer

    Code:
    User-agent: * Disallow:

    On the other hand, if we leave the Disallow empty, nothing happens. Robots can access any content.

    Now another example

    Code:
    User-agent: * Disallow: /contact.html. Disallow: /file.html

    This following code, makes that all robots do not go through contact.html or file.html

    Then we have this other example that allows no robot to pass through the site, except for the Google bot

    Code:
    User-agent: Google. Disallow: User-agent: *Disallow: /
    Tags cloud
    • Html
    Rating
    0
    Views
    0
    Comments
    Recommend to friends
    • Twitter
    • Facebook
    • Instagram
    SUBSCRIBE
    Subscribe to comments
    YOU MIGHT ALSO LIKE
    • Concept in Definition ABC
      Miscellanea
      04/07/2021
      Concept in Definition ABC
    • Concept in Definition ABC
      Miscellanea
      04/07/2021
      Concept in Definition ABC
    • Definition of Eye of Providence
      Miscellanea
      04/07/2021
      Definition of Eye of Providence
    Social
    9714 Fans
    Like
    4750 Followers
    Follow
    2318 Subscribers
    Subscribers
    Categories
    Administration
    Spanish Classes
    Society.
    Culture.
    Science.
    Get To Know Us
    Psychology. Top Definitions
    History. Top Definitions
    Examples
    Kitchen
    Basic Knowledge
    Accounting
    Contracts
    Css
    Culture And Society
    Curriculum Vitae
    Right
    Design
    Art
    Job
    Polls
    Essays
    Writings
    Philosophy
    Finance
    Physics
    Geography
    Story
    Mexico History
    Asp
    Popular posts
    Concept in Definition ABC
    Concept in Definition ABC
    Miscellanea
    04/07/2021
    Concept in Definition ABC
    Concept in Definition ABC
    Miscellanea
    04/07/2021
    Definition of Eye of Providence
    Definition of Eye of Providence
    Miscellanea
    04/07/2021

    Tags

    • Basic Knowledge
    • Accounting
    • Contracts
    • Css
    • Culture And Society
    • Curriculum Vitae
    • Right
    • Design
    • Art
    • Job
    • Polls
    • Essays
    • Writings
    • Philosophy
    • Finance
    • Physics
    • Geography
    • Story
    • Mexico History
    • Asp
    • Administration
    • Spanish Classes
    • Society.
    • Culture.
    • Science.
    • Get To Know Us
    • Psychology. Top Definitions
    • History. Top Definitions
    • Examples
    • Kitchen
    Privacy

    © Copyright 2025 by Educational resource. All Rights Reserved.