Robot.txt file is used to disallow certain webpages on your website from search engine crawling. These pages are viewable by human interface, but search engines never crawl or indexed them. It is an important On Page SEO for your website, restricting search engine access to certain web pages on your website.