robots.txt I generate this check out its right?

Discussion in 'Search Engine Optimization' started by NHN, Jun 1, 2009.

  1. #1
    Hello,

    for my site www.example.com
    i dont want to allow google crawl my /admin pannel.. so

    robots.txt

    user name: *
    Disallow: /admin

    or i have to write

    user name: *
    Disallow: /admin/

    kindly give suggestion.
     
    NHN, Jun 1, 2009 IP
  2. Rivers

    Rivers Peon

    Messages:
    276
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Rivers, Jun 1, 2009 IP
  3. Canonical

    Canonical Well-Known Member

    Messages:
    2,223
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    110
    #3
    The two examples you listed do slightly different things...

    If you have URLs on your site like:

    www.example.com/admin/
    www.example.com/admin/subfolder/
    www.example.com/admin/pagename.php
    www.example.com/admin/subfolder/pagename.php
    www.example.com/adminblue/
    www.example.com/admin.php

    Then Disallow: /admin will block ALL of the above pages since it basically says block EVERY URI whose path starts with "/admin" (in other words /admin*).

    The Disallow: /admin/ will block ONLY:

    www.example.com/admin/
    www.example.com/admin/subfolder/
    www.example.com/admin/pagename.php
    www.example.com/admin/subfolder/pagename.php

    It will not block:

    www.example.com/adminblue/
    www.example.com/admin.php

    Because it is directing the search engines to NOT index any URL that starts w/ "/admin/" (in other words, /admin/*).
     
    Canonical, Jun 1, 2009 IP
  4. NHN

    NHN Banned

    Messages:
    111
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    ok
    I will do like this
    user name:*
    Disallow: /admin
    becoz i dont want to allow google to index the pages after admin .. right?
     
    NHN, Jun 1, 2009 IP
  5. 01c81a0409

    01c81a0409 Peon

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Yes its right,

    user name:*
    Disallow: /admin
     
    01c81a0409, Jun 2, 2009 IP
  6. mirzam

    mirzam Peon

    Messages:
    43
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Hi

    It should be like

    User-Agent: *
    Disallow: /admin/
     
    mirzam, Jun 2, 2009 IP
  7. webrecsol

    webrecsol Peon

    Messages:
    448
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    yes you can use this:-

    User-Agent: *
    Disallow: /admin/

    and if you want more information then look here:-www.robotstxt.org
     
    webrecsol, Jun 2, 2009 IP
  8. technomart

    technomart Guest

    Messages:
    240
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Yes its right,

    user name:*
    Disallow: /admin
     
    technomart, Jun 2, 2009 IP
  9. NHN

    NHN Banned

    Messages:
    111
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    hi,

    I have one more confusion i.e.

    what is the meaning of user agent: *
    Allow: /
    then google will indexing our site?
     
    NHN, Jun 2, 2009 IP
  10. Shilpa Mehta

    Shilpa Mehta Peon

    Messages:
    56
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Thanx buddy
     
    Shilpa Mehta, Jun 2, 2009 IP
  11. KathyMillerL222

    KathyMillerL222 Peon

    Messages:
    398
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #11
    hey buddies, I too was searching for this info, me too do not want google to crawl my admin..... to get an idea I had just searched on this forum and got the tips here..... thxs for sharing .....
     
    KathyMillerL222, Jun 2, 2009 IP
  12. NHN

    NHN Banned

    Messages:
    111
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #12
    I am feeling glad ..
     
    NHN, Jun 6, 2009 IP
  13. 3drendering

    3drendering Peon

    Messages:
    260
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #13
    Yes Its a Right...
     
    3drendering, Jun 6, 2009 IP
  14. ericajoieake

    ericajoieake Guest

    Messages:
    556
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #14
    this is the right way

    user name:*
    Disallow: /admin
     
    ericajoieake, Jun 7, 2009 IP
  15. NHN

    NHN Banned

    Messages:
    111
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #15
    Hi,
    dear friends,

    can anyone able to answer me that
    I found in many sites, they are putting sitemap location in robots.txt file
    what is the benefit to do like this ..

    or
    sitemap and robots.txt from both which is best for site ? ..

    can we create both on our site?
     
    NHN, Jun 8, 2009 IP