Robots are text files that should be placed in a place that could be crawled. The protected folder is not crawlable as it has .httaccess file with the content below:
deny from all
You should put your file in the root. So for example you can access it through: www.example.com/robots.txt.