How can I use robots.txt?

Discussion in 'robots.txt' started by fesite, Jun 24, 2006.

  1. #1
    I want to restrict certain files on my site,How can I do?
    :confused:
     
    fesite, Jun 24, 2006 IP
  2. minstrel

    minstrel Illustrious Member

    Messages:
    15,082
    Likes Received:
    1,243
    Best Answers:
    0
    Trophy Points:
    480
    #2
    Create a plain text file (ASCII/ANSI) as follows:

    User-agent: *
    Disallow: filename.htm
    Disallow: /directoryname/
    Disallow: /directoryname/filename.htm
    
    Code (markup):
    The first line disallows (instruction to NOT spider) a single file.
    The second line disallows an entire directory.
    The third line disallows a single file in a directory.

    Upload this file to the root directory on your domain.
     
    minstrel, Jun 24, 2006 IP