Hello My Name is Robots Dot Text (Robots.txt)
Greetings humans! My name is Robots Dot Text. You can call me robots.txt (ah hah! Clever, eh?). As you can see, I am mainly part text document (hence my bland-looking figure; apologies for not being part Word document or Photoshop image), part “dot” (it is hard finding suits that fit a dot-like figure) and part robot. I am quite a character!
Think of me as a liaison between your website and a search engine robot/spider. I am like your website’s personal butler: I greet web robots at the door and give them directions as to where they may proceed within your site.
Usually, when you humans have guests over, you do not necessarily like others to go into your human bedroom (unless you are into that thing… not that there is anything wrong with that!). In the same way – you can instruct me as to where you want me to keep the web robots from visiting on your site. You do not want them to see a page for some reason? I can make sure that happens.
These web robot guests are quite the fickle bunch. They only seem to respond to a particular greeting. Think of it as a secret “bro-shake” that we do before they know they should comply with my requests. It goes like this:
That is my universal greeting to all web robots. I can also greet individual web robots if you would like me to. Here is my personal greeting to my ‘brother-from-a-search-engine-mother’ Googlebot:
If I were to say this, only my web robot friend Googlebot would respond to the directions that follow.
If you were to say, “Hey Robots Dot Text, I do not want any web robot guests visiting (and consequently indexing) my bedroom,” or a single-page on your site, I would then instruct the “User-agent: *” this way:
User-agent: * Disallow: /upstairs/bedroom.html
Web robots are totally cool with me telling them where they can visit in your website and where they can not. They are quite proper, like me, and will not look down on you if you only want them to see a section of your site.
Let us say, for example, that you do not wish for your web robot guests to see your bedroom… but thinking about it, you do not want them to visit the entire upstairs which includes your “man-cave” (hey, that is what you call it, not me!) and guest bathroom. This is acceptable as well; I can tell your web robot guests not to visit (and subsequently index) upstairs, or an entire sub-directory of your site, I would then instruct the “User-agent: *” this way:
User-agent: * Disallow: /upstairs/
If I tell your web robot guests this, they know that visiting upstairs (i.e. your ‘upstairs’ sub-directory) is most definitely not allowed!
I can also promptly tell all web robot guests who come over to turn away and come back at a better time. This is best when you are performing any maintenance at your place (like a redesign). Do not feel bad about turning away your web robot guests during this time; it is best for them to see your place when you have everything organized and looking sharp! If you would like me to tell your web robot guests not to visit (and subsequently not index) all of your pages of your site, I would instruct the “User-agent: *” this way:
User-agent: * Disallow: /
Those are the basics of my butlerly-duty. I am hoping that the word I created in the previous sentence makes sense for you since it is not a real word in the English language. Entschuldigung! Hah hah hah hah!
Well, I am off to greet some more web robots. I tell you: some of these guests come back almost daily! It is tough work being me. But it is quite rewarding!