Robots.txt

Discussion in 'Search Engine Optimization' started by minnseoelite, Nov 11, 2006.

  1. #1
    Sorry if this is a dupe. thread I did not see my first post appear on the board. Ok I have done a search for this and have not been able to find anything but was wondering if someone knows anything about this. I have sites which run on PHP and use includes for certian parts of the site. I am going to add a Cool Links section with the links being placed in a seperate file and will be displayed on the site using the include function. These links will not be exchanges just sites that I think are cool and want to offer links to for my visitors. But I don't want Google or any other search engine to see them. So my question is if I use my robots.txt file to dissallow that one file what will be the result....from my guessing their are 3 possible outcomes

    1. Googlebot will not follow those links but will index and follow the rest of the page.

    2. Googlebot will not index those links or any page that has that file included on it.

    3. Googlebot will index the page down to the point where the included file appears in the source code but will not spider any futher down the page.

    I know I could use the rel nofollow tag but I dont want the added weight on the page as I am very careful about my text to code ratio. Any thoughts....
     
    minnseoelite, Nov 11, 2006 IP
  2. Cryogenius

    Cryogenius Peon

    Messages:
    1,280
    Likes Received:
    118
    Best Answers:
    0
    Trophy Points:
    0
    #2
    If you add the filename to your robots.txt file, the Google will not even attempt to download it. This has to be the actual file on the address bar, not the file that is included, otherwise it will not work.

    Alternatively, you can add <meta name="robots" content="noindex, nofollow"> to the <head> of your code. This will tell Google (and other SEs) not to index the page and not to follow any links.

    More info here: www.robotstxt.org

    Cryo.
     
    Cryogenius, Nov 11, 2006 IP
  3. Monty

    Monty Peon

    Messages:
    1,363
    Likes Received:
    132
    Best Answers:
    0
    Trophy Points:
    0
    #3
    What I don't understand is why you want to use nofollow on links you think are cool.
    To "nofollow" links in blog comments and the like, well, why not, but for sites you appreciate and recommand ? I mean, if everybody do the same, this is end of the web...

    Sorry for the off topics, but I couldn't help me on this... :eek:

    Back to you question :
    Cryogenius is right : put your resulting php page in the robots.txt file and all bots respecting it will not see the page
     
    Monty, Nov 11, 2006 IP
  4. minnseoelite

    minnseoelite Peon

    Messages:
    845
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I can see your point about the rel nofollow and while I generally have no problem giving a cool site a link I have to think of it from an SEO standpoint and I have reached the maximum number of outgoing link I want to give from my site......
     
    minnseoelite, Nov 11, 2006 IP
  5. Monty

    Monty Peon

    Messages:
    1,363
    Likes Received:
    132
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Yes, I'm sure it's can be legitimate, but I can't help thinking that sometimes we do (myself included) think to much in terms of SEO resulting for instance in not passing value to sites we trust.
    Bad SEO, bad :D
     
    Monty, Nov 11, 2006 IP
  6. minnseoelite

    minnseoelite Peon

    Messages:
    845
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #6

    Yea I know I do but when your site is less than six months old you need all the help you can get
     
    minnseoelite, Nov 11, 2006 IP