Allow is a nifty directive that works by letting you specify that a bot can look at certain files within a disallowed directory. Let's say that you have disallowed an image directory, but there is a file in that directory you decide later on that you would like to have indexed. Instead of having to block every other file in the directory, you can simply do this:
User-agent: *
Disallow: /images/
Allow: /images/mefeedingorphans.jpg
Now all agents will be able to enter your /images/ directory, but they will only look at the file(s) you tell them to.
Commenting
You can leave comments in your robots.txt files by preceding them with a pound(#) symbol, like so:
# Here is a comment
User-agent: * # all bots should follow the disallow
Disallow: /images/ # no bot should access the images directory
Conclusion
Well, that's it for this article. There are still more features of robots.txt to discuss, like the Robots Meta Data Tag, and more issues to speak of, like NoFollow and ACAP, all of which we will cover in a future article.