I dont have a robots.txt

Discussion in 'Search Engine Optimization' started by Knight1234, Apr 12, 2008.

  1. #1
    Hey guyz, I dont have a robots.txt file, all the time i was thinking its automatically in our sites, but today when i went on google it said i dont have it :mad:
    can someone tell me how we add a robots.txt file ? and what do we have to type in it ?
    (Sorry, but i am new, to robots.txt thingy :p)
     
    Knight1234, Apr 12, 2008 IP
  2. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    437
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Dan Schulz, Apr 12, 2008 IP
  3. GameOver

    GameOver Well-Known Member

    Messages:
    1,307
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    140
    #3
    i don't have one either. I don't think they are really necessary.
     
    GameOver, Apr 12, 2008 IP
  4. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    437
    Best Answers:
    0
    Trophy Points:
    0
    #4
    They're actually a pretty darn good idea to have. Not only will they keep your server error logs free of "false positives" but they'll also help you channel your PageRank flow to and from the pages you want to be indexed (not to mention keep the legitimate bots out of places where they don't belong).
     
    Dan Schulz, Apr 12, 2008 IP
  5. Knight1234

    Knight1234 Peon

    Messages:
    345
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    ok, i added a robots.txt generated from google, and then i just typed these where i dont want bots to go like
    disallow: /forum/calender.php
    is that fine ?
     
    Knight1234, Apr 12, 2008 IP
  6. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    437
    Best Answers:
    0
    Trophy Points:
    0
    #6
    That should be fine.
     
    Dan Schulz, Apr 12, 2008 IP
  7. ajsa52

    ajsa52 Well-Known Member

    Messages:
    3,426
    Likes Received:
    125
    Best Answers:
    0
    Trophy Points:
    160
    #7
    IMO is safer if you hide your .php files from malicious bots
    You can place your .php files in a directory, example /myphps and add:
    disallow: /myphps

    Also you may need to add this code on your .htaccess file on /myphps directory to avoid directory listing:
    
    Options -Indexes -Includes
    Order allow,deny
    Allow from all
    
    Code (markup):
     
    ajsa52, Apr 12, 2008 IP
  8. Knight1234

    Knight1234 Peon

    Messages:
    345
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #8
    hmm, alright, thanks.
     
    Knight1234, Apr 12, 2008 IP
  9. poseidon

    poseidon Banned

    Messages:
    4,356
    Likes Received:
    246
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Honestly not having a robots.txt is not a big thing. But still its good to hide your folders from getting indexed. DP has its own Robots.txt section which should help you in getting a start.
     
    poseidon, Apr 13, 2008 IP
  10. Yankee85

    Yankee85 Peon

    Messages:
    1,067
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #10
    You don't need a robots.txt file if you don't have anything to hide from search engines (like a folder or a file on your website)
     
    Yankee85, Apr 13, 2008 IP
  11. homebizseo

    homebizseo Peon

    Messages:
    4,538
    Likes Received:
    56
    Best Answers:
    0
    Trophy Points:
    0
    #11
    You really don' need a robots.txt.
     
    homebizseo, Apr 13, 2008 IP
  12. ajsa52

    ajsa52 Well-Known Member

    Messages:
    3,426
    Likes Received:
    125
    Best Answers:
    0
    Trophy Points:
    160
    #12
    Can you explain why ?.
    I agree with Dan Schulz: helps to keep your logfiles free of HTTP 404 errors and keep the legitimate bots out of places where they don't belong.
     
    ajsa52, Apr 13, 2008 IP