What is User Agent?

Discussion in 'robots.txt' started by smartware, Apr 25, 2010.

  1. #1
    Hello folks,
    Why do we use ' User Agent: * ' in a robots.txt file? What is its importance?
     
    smartware, Apr 25, 2010 IP
  2. pr0t0n

    pr0t0n Well-Known Member

    Messages:
    243
    Likes Received:
    10
    Best Answers:
    10
    Trophy Points:
    128
    #2
    User-Agent defines the search engine for which you are setting rules bellow. If you put 'User-agent: *' then such rules configured bellow affect all search engine bots. If you for example set 'User-Agent: Googlebot' then rules defined bellow will affect only google bot.
     
    pr0t0n, Apr 30, 2010 IP
  3. iloveindia

    iloveindia Peon

    Messages:
    17
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    A program that accesses documents on the Web for any purpose. Web browsers, download managers, link checking programs, and indexing robots for search engines are all user agents.

    " * " means for all of them.

    It basically means you are calling all of these bots or robots to accept the next set of commands.
    Let's say, this has been written in robots.txt -

    User-agent: *
    Disallow: /

    The above command means you are restricting access to the root folder of your website for any and all robots.
     
    iloveindia, May 3, 2010 IP