Robots.txt is the file where you can block which page you want to index or which is no need to index u can make it from robots.txt.
we are informing to search engines that which page needs to index, which page is not to index in search engine result. when ever search engine bots reads your website first it will fine robotos.txt, So, that we can contor via there.