Easy way to prevent robots indexing resource folders and content?

If what you want is to stop search engines from indexing a folder, the robots.txt file should help.
Some things about a robots.txt file:

  • It provides no protection, if they have the link, they can get the resource
  • A link from anywhere (without a nofollow) may still get indexed
  • The robots.txt file is in the open and is often targeted by hackers to find “hidden” resources