Skip to content

Configuring ROBOTS.txt for WordPress

2009 September 2

From  many of we beginner users of wordpress we do not know how much a robot or bot of a search engine is value for. They crawl through our content and store the information on search engine server so that user can access our site. But there can be harm also if robots.txt is not configured correctly they might access our wp-admin where the access log information is stored. so here we will learn how to Configuring ROBOTS.txt.

first of all

What Is Robots.txt?


robots txt visual Configuring ROBOTS.txt for Wordpress

Robots.txt is a text (not html) file you put on your site to tell search robots which pages you would like them not to visit. Robots.txt is by no means mandatory for search engines but generally search engines obey what they are asked not to do. It is important to clarify that robots.txt is not a way from preventing search engines from crawling your site (i.e. it is not a firewall, or a kind of password protection) and the fact that you put a robots.txt file is something like putting a note “Please, do not enter” on an unlocked door – e.g. you cannot prevent thieves from coming in but the good guys will not open to door and enter. That is why we say that if you have really sen sitive data, it is too naïve to rely on robots.txt to protect it from being indexed and displayed in search results.

Here’s a basic “robots.txt”:

User-agent: *
Disallow: /

Now To prevent Google from indexing a bunch of useless pages on your site, you can use a robot.txt file to block Google from those parts of your site.

google robot Configuring ROBOTS.txt for Wordpress

Use a basic text editor, like notepad.exe, and create a new file called robots.txt. Paste the following into the file.

User-agent: *
Disallow: /wp-content/
Disallow: /wp-admin/
Disallow: /wp-includes/
Disallow: /wp-
Disallow: /feed/
Disallow: /trackback/
Disallow: /cgi-bin/
Allow: /wp-content/uploads/

User-agent: Googlebot
Disallow: /*.pdf$
Disallow: /*.php$
Disallow: /*.js$
Disallow: /*.cgi$
Disallow: /*.xhtml$
Disallow: /*.php*
Disallow: /*.inc$
Disallow: /*.css$
Disallow: /*.txt$
Disallow: /*?*
Disallow: /wp-*
Disallow: */feed/
Disallow: */trackback/
Disallow: /cgi-bin/
Disallow: /go/
Allow: /wp-content/uploads/


Related Posts with Thumbnails

If you enjoyed this post, make sure you subscribe to our RSS feed!

No related posts.

Related posts brought to you by Yet Another Related Posts Plugin.

12 Responses leave one →
  1. September 4, 2009

    such post help new users like us for new technologies.
    thank you
    archit´s last blog ..Zephr’09|Aviation Fest at IIT Bombay My ComLuv Profile

  2. SweestKesk permalink
    September 6, 2009

    nice article am looking for.
    updating my flock to get your updates

  3. September 8, 2009

    great info about robots.txt many bloggers really dont know the exact importance of robots.txt thanks for sharing dude.

    wanna link exchange ?
    Devilslab-Your guide to stay updated´s last blog ..Best Mobile Web Browsers | Download Latest and Best Mobile Web Browsers My ComLuv Profile

  4. September 9, 2009

    You need to use “No Self Pings” plugin buddy or else your trackbacks from your own site would be looking ugly in the comments section.

    Suneel´s last blog ..WordPress Acquires After The Deadline Contextual Spelling and Grammar Checking Plugin My ComLuv Profile

  5. Soort permalink
    October 2, 2009

    like when you start typing in something and everything that could related to that comes down..

  6. chris permalink
    November 10, 2009

    hi,

    thanks for that post but i have a question.

    does it affect seo in a negative way?

    thanks

    • November 10, 2009

      @chris you are welcome at Techmadly.com

      no this does not affect SEO and even if you are writing your robots.txt in smart way you can even get rid of spam which SEO consider very strongly.
      like you have a post and that is also defined in any other category then robots will take it as two post having same content and consider you spamming. but if you bar category listing by robots.txt you wll have a postive effect.

Trackbacks and Pingbacks

  1. 20 Must do things in starting to make a killer wordpress blog

Leave a Reply

Note: You can use basic XHTML in your comments. Your email address will never be published.

Subscribe to this comment feed via RSS

CommentLuv Enabled

Additional comments powered by BackType