Components of Robot.txt File - User-Agent, Disallow, Allow & Sitemap Last Updated : 23 Jul, 2025 Comments Improve Suggest changes Like Article Like Report The robots.txt file in SEO acts as a gatekeeper, before any good bots entering to your website they first visit the robots.txt file and read which pages are allowed to crawl and which are not. A robots.txt file tells the Google crawler bot which URLs the crawler can access on your website. Example of Robot.txt FileYou can also visit our robots.txt file by this URL: https://www.geeksforgeeks.org/robots.txt User-agent: *Disallow: /wp-admin/Disallow: /community/Disallow: /wp-content/plugins/Disallow: /content-override.phpUser-agent: ChatGPT-UserDisallow: / Components of Robot.txt FileNow lets explain above code User-agent means bots.* means all.Disallow means if the URL contains this keyword don’t crawl.For example: If we put Disallow on the URL https://www.geeksforgeeks.org/wp-admin/image.jpg and do not allow it to be crawled. Now even if the URL is changed to https://www.geeksforgeeks.org/news//wp-admin/image.jpg then also https://www.geeksforgeeks.org/new/wp-admin/image.jpg is not allowed to crawl (although https://www.geeksforgeeks.org/news/ is allowed to crawl). User-agent: ChatGPT-User blocks the ChatGPT bot from crawling the whole website.User-agent: *Disallow: / Above code block all web crawler to visit any page of website.Note: If you want any URL to deindex from Google Search quickly you can use Google Search Console removal request from your GSC account. Comment More infoAdvertise with us Next Article What is Technical SEO? R rohitkumaw5db Follow Improve Article Tags : TechTips Similar Reads What is Technical SEO OptimizationWhat is Technical SEO? Technical SEO, in simple terms, refers to the optimization of a website's technical elements to improve its visibility and performance in search engine results. Search engine optimization (SEO) is most certainly something you know. It's typically a method to use keywords to grab the interest of web 10 min read Page SpeedWhat is Google PageSpeed Insights? Google PageSpeed is a set of tools and services developed by Google to assist website owners in optimizing the performance of their web pages. The primary focus of Google PageSpeed is to enhance the loading speed and overall user experience of websites, which is crucial for retaining visitors and ac 11 min read Mobile FriendlinessMobile SEO Prerequisite:SEO Mobile SEO (Mobile Search Engine Optimization) is an optimizing technique for mobile devices like smartphones and Tablets. Mobile SEO is the practice of optimizing a website to rank higher in SERPs(Search Engine Result Pages). It is suggested to use Mobile SEO in today's modern time 11 min read Mobile SEO Prerequisite:SEO Mobile SEO (Mobile Search Engine Optimization) is an optimizing technique for mobile devices like smartphones and Tablets. Mobile SEO is the practice of optimizing a website to rank higher in SERPs(Search Engine Result Pages). It is suggested to use Mobile SEO in today's modern time 11 min read Crawlability and IndexabilitySite Structure and NavigationDifference between Information Architecture and UX DesignInformation Architecture : Information Architecture, as the name suggests, acts as a blueprint to show clear paths to website visitors and make it easier for them to navigate that in turn increases user experience. It is a key aspect of UX design that mainly focuses on organizing information, struct 2 min read Schema Markup Like