How do I block search engines on my WP Blog?

Discussion in 'WordPress' started by CommandTree1985, May 25, 2010.

  1. #1
    Hi guys,

    What is the most effective way of preventing search engines from indexing tags and comments pages through Wordpress?

    I have the All-In-One SEO and Yoast's Meta Robots but neither of them seem to be doing the job effectively.

    I could use robots.txt but I would need a ridiculous number, there must be a way to add a rule to stop all tags, comments etc being indexed or followed?

    Kind regards,
    Anthony
     
    CommandTree1985, May 25, 2010 IP
  2. ilook

    ilook Well-Known Member

    Messages:
    1,602
    Likes Received:
    15
    Best Answers:
    1
    Trophy Points:
    165
    #2
    By default it's not indexed by search engines (check the settings in the admin panel).

    Regarding the robots.txt file you could use:

    User-agent:  *
    Disallow: /
    PHP:
     
    ilook, May 25, 2010 IP
  3. sherekhan2

    sherekhan2 Peon

    Messages:
    35
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I'd recommend you go for the robots.txt option. You can also hack you header file and add a "noindex, nofollow" meta-tag
     
    sherekhan2, May 28, 2010 IP
  4. DanDemarco

    DanDemarco Guest

    Messages:
    27
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You can go under privacy and set to disable search engines.

    Dan
     
    DanDemarco, May 29, 2010 IP
  5. profmustamar

    profmustamar Active Member

    Messages:
    232
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #5
    Disable Search engine under privacy settings.. Or you may use robot.txt and make some change in that file.
     
    profmustamar, May 30, 2010 IP
  6. khaxan

    khaxan Peon

    Messages:
    78
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I think that adding "noindex" in the header.php will work
     
    khaxan, May 30, 2010 IP
  7. CommandTree1985

    CommandTree1985 Peon

    Messages:
    199
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I only want to block search engines from admin/comment pages, not my entire site so anything like;

    Disallow: /

    Would be an EPIC fail! :eek:)
     
    CommandTree1985, May 30, 2010 IP
  8. edpatton

    edpatton Active Member

    Messages:
    261
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    83
    Digital Goods:
    1
    #8
    yea uploading the robot.txt option is the best way to go.
     
    edpatton, May 30, 2010 IP
  9. otshare

    otshare Peon

    Messages:
    70
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #9
    you can use robots.txt to allow/disallow certain folders/files from indexing by search engines.

    Use this

    Disallow: /wp-admin/
    Disallow: /tag/


    To disallow admin pages and tags.
     
    otshare, May 30, 2010 IP
  10. ilook

    ilook Well-Known Member

    Messages:
    1,602
    Likes Received:
    15
    Best Answers:
    1
    Trophy Points:
    165
    #10
    Go to yourdomain.com/wp-admin/options-privacy.php and select "I would like to block search engines, but allow normal visitors".
     
    ilook, May 31, 2010 IP
  11. tribulant

    tribulant Active Member

    Messages:
    352
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    85
    #11
    There is a setting under privacy
     
    tribulant, May 31, 2010 IP