{"id":529,"date":"2020-04-08T17:33:40","date_gmt":"2020-04-08T17:33:40","guid":{"rendered":"https:\/\/www.dopinger.com\/blog\/?p=529"},"modified":"2024-08-08T08:27:33","modified_gmt":"2024-08-08T08:27:33","slug":"what-is-robots-txt","status":"publish","type":"post","link":"https:\/\/www.dopinger.com\/blog\/what-is-robots-txt","title":{"rendered":"What Is Robots.txt? (+Including Example Codes)"},"content":{"rendered":"\n<p>If you are familiar with <a href=\"https:\/\/www.dopinger.com\/seo\/\" target=\"_blank\" rel=\"noreferrer noopener\">SEO<\/a>, you know that your web pages should be indexed to be on the SERP. Okay, but how is your website indexed on search engines? The invisible heroes are search engine bots. You can allow or not allow them to visit your website, thanks to robots.txt files.<\/p>\n\n\n\n<p>Are you new to SEO and trying to learn how to crawl all pages of your website? We will explain the purpose of the robots.txt file and also share the standard rules you might want to use to communicate with search engine robots like Googlebot.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"What_Is_Robotstxt\"><\/span>What Is Robots.txt?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>The primary purpose of the robots.txt file is to restrict access to your website by search engine robots or Bots. The file is quite literally a simple dot txt text file that can be opened and created in almost any notepad HTML editor or word processor. <a href=\"https:\/\/www.google.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">Google<\/a> defines robots.txt files with these words: &#8220;A robots.txt file tells search engine crawlers\u00a0which pages or files\u00a0the crawler can or can&#8217;t request from your site. This is used mainly to avoid overloading your site with requests.&#8221;<\/p>\n\n\n\n<p>To make a start, name your file robots.txt and add it to the root layer of your website. This is important because all of the main reputable search engine spiders will automatically look for this file to take instructions before crawling your website. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_Does_Robottxt_Work\"><\/span>How Does Robot.txt Work?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Search engines work for two main missions: crawling websites and indexing them. First, search engine bots follow the links and sitemap to crawl websites. Before crawling, the crawlers examine the robot.txt file and look for answers to how they should crawl the site. If there is no &#8220;disallow:\/&#8221; code, they can index all websites, but if there is, some or all pages will not be indexed. Thus, you can allow search engine bots to crawl or not with robots.txt codes.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"What_Codes_Should_You_Write_in_Robotstxt_File\"><\/span>What Codes Should You Write in Robots.txt File?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Now that you know the basic definition of a robots.txt file, let&#8217;s give some robots.txt examples with visuals for understanding <a href=\"https:\/\/www.dopinger.com\/blog\/how-to-create-robots-txt-file\" target=\"_blank\" rel=\"noreferrer noopener\">how to create robots.txt file<\/a>. <\/p>\n\n\n\n<p>So here&#8217;s how the file should look. To start with, on the very first line, add the user agent colon star. This first command primarily addresses the instructions to all search bots. Once you have adjusted a specific, or in our case, with the asterisks all search bots, you come onto the allow and disallow commands that you can use to specify your restrictions. To simply ban the box from the entire website directory, including the homepage, you will add the following code: Disallow with a capital D, colon space, and a forward slash. This first forward slash represents the root layer of your website. <\/p>\n\n\n\n<p>In most cases, you don&#8217;t want to restrict your entire website; you will work on just specific folders or files. To do this, you specify each restriction on its own line and proceed with the disallow command. In our example, you can see the necessary code to restrict access to an admin folder and everything inside it. The format is very similar if you want to restrict individual Pages or files. For example, in Line 4. We&#8217;re not restricting their entire secure folder, just one HTML file within it.<\/p>\n\n\n\n<p>Also, you should bear in mind that these directives are case-sensitive. You need to ensure that you specify on your robots.txt file the exact match against your website&#8217;s file or folder name. The first example showed you the basics. In contrast, we come onto slightly more advanced pattern-matching techniques next.  <\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"960\" height=\"480\" src=\"https:\/\/storage.googleapis.com\/dopingcloud\/blog\/en\/2023\/02\/robot-txt-codes.jpg\" alt=\"robot.txt codes\" class=\"wp-image-15743\" srcset=\"https:\/\/storage.googleapis.com\/dopingcloud\/blog\/en\/2023\/02\/robot-txt-codes.jpg 960w, https:\/\/storage.googleapis.com\/dopingcloud\/blog\/en\/2023\/02\/robot-txt-codes-768x384.jpg 768w\" sizes=\"(max-width: 960px) 100vw, 960px\" \/><\/figure><\/div>\n\n\n<p>They can be handy if you&#8217;re looking to block files or directories in bulk. And they can do so without having lines of commands on your robot&#8217;s file. We can also call these bulk commands pattern matching. One example of the most common one you might want to use would be restricting access to all dynamically generated URLs containing the question mark. For example, check Line 5. All you need to do to catch all of this type is the forward-slash asterisks and then a question mark symbol. <\/p>\n\n\n\n<p>You can also use pattern matching to block access to all directories that begin with admin, for example. Furthermore, If you check Line 6, you&#8217;ll see how we&#8217;ve again used an asterisk to match all directories that start with the admin. Have the following folders: &#8220;admin &#8211; panel,&#8221; &#8220;admin &#8211; files,&#8221; and &#8220;admin &#8211; secure&#8221;  on your root directory. This line will block access to all three folders as they start with &#8220;admin.&#8221;<\/p>\n\n\n\n<p>The final pattern-matching command is the ability to identify and restrict access to all files that end with a specific extension. Finally, On Line 7, you&#8217;ll see how the single short command. It will instruct the search engine Bots and spiders not to crawl and, ideally, cache any pages that contain the dot PHP extension.<\/p>\n\n\n\n<p>So after your first forward slash, use the asterisks followed by a full stop and then the extension. You conclude the command with the dollar sign to signify an extension instead of a string. As a result, the dollar sign will tell the Bots that the file to be restricted must end with this extension.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>And this sums up our guide. Using those six different techniques, you should be able to put together a well-optimized robots.txt file. It can flag content to search engines that you allow for crawling or caching. We must point out that website hackers often check robots.txt files. So they can indicate a security vulnerability that may lie, which they might want to throw themselves at. Always be sure to password-protect and test the security of your Dynamic Pages. Particularly if you&#8217;re advertising their location on a robots.txt file. Also, to learn more about robots.txt files, you can check Google Support Page.<\/p>\n\n\n\n<div class=\"schema-faq wp-block-yoast-faq-block\">     <\/div>\n\n    <div class=\"container m-0 p-0 pm-faq\">\n            <h2 class=\"accordion-title\"><span class=\"ez-toc-section\" id=\"Frequently_Asked_Questions_About\"><\/span>Frequently Asked Questions About <span class=\"ez-toc-section-end\"><\/span><\/h2>\n        <div class=\"faq accordion faq-drop\" id=\"accordion\">\n            <div class=\"col-md-12 faq-card m-0 p-0\">\n                    <div class=\"card faq\">\n                        <div class=\"card-header collapsed d-flex justify-content-between align-items-center d-flex\" id=\"heading0\"\n                             data-toggle=\"collapse\" data-target=\"#collapse_0\" aria-expanded=\"true\" role=\"button\"\n                             aria-controls=\"collapse_0\">\n                            Is the robots.txt file important to use for SEO?\n                            <svg class=\"close\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                              <path d=\"M12.0002 23.6663C9.69272 23.6663 7.43709 22.9821 5.51851 21.7002C3.59994 20.4182 2.1046 18.5961 1.22157 16.4643C0.338551 14.3325 0.107512 11.9867 0.557673 9.72362C1.00783 7.46051 2.11898 5.38171 3.75059 3.7501C5.3822 2.11849 7.461 1.00735 9.72411 0.557185C11.9872 0.107024 14.333 0.338063 16.4648 1.22108C18.5966 2.10411 20.4187 3.59945 21.7006 5.51803C22.9826 7.4366 23.6668 9.69223 23.6668 11.9997C23.6668 15.0939 22.4377 18.0613 20.2497 20.2493C18.0618 22.4372 15.0944 23.6663 12.0002 23.6663ZM12.0002 2.27746C10.0773 2.27746 8.1976 2.84766 6.59879 3.91595C4.99998 4.98424 3.75386 6.50264 3.01801 8.27914C2.28215 10.0556 2.08962 12.0105 2.46476 13.8964C2.83989 15.7823 3.76584 17.5146 5.12552 18.8743C6.48519 20.234 8.21753 21.16 10.1035 21.5351C11.9894 21.9102 13.9442 21.7177 15.7207 20.9818C17.4972 20.246 19.0156 18.9999 20.0839 17.4011C21.1522 15.8022 21.7224 13.9226 21.7224 11.9997C21.7224 9.42118 20.6981 6.9483 18.8748 5.12503C17.0515 3.30176 14.5787 2.27746 12.0002 2.27746Z\" fill=\"#4266FF\"\/>\n                              <path d=\"M12.0001 18.1566C11.7432 18.1533 11.4979 18.0497 11.3163 17.8681C11.1347 17.6865 11.0312 17.4412 11.0278 17.1844V6.81402C11.0278 6.55617 11.1303 6.30888 11.3126 6.12655C11.4949 5.94423 11.7422 5.8418 12.0001 5.8418C12.2579 5.8418 12.5052 5.94423 12.6875 6.12655C12.8698 6.30888 12.9723 6.55617 12.9723 6.81402V17.1844C12.9689 17.4412 12.8654 17.6865 12.6838 17.8681C12.5022 18.0497 12.2569 18.1533 12.0001 18.1566Z\" fill=\"#4266FF\"\/>\n                              <path d=\"M17.1854 12.9718H6.815C6.55715 12.9718 6.30986 12.8694 6.12753 12.687C5.9452 12.5047 5.84277 12.2574 5.84277 11.9996C5.84277 11.7417 5.9452 11.4944 6.12753 11.3121C6.30986 11.1298 6.55715 11.0273 6.815 11.0273H17.1854C17.4432 11.0273 17.6905 11.1298 17.8728 11.3121C18.0552 11.4944 18.1576 11.7417 18.1576 11.9996C18.1576 12.2574 18.0552 12.5047 17.8728 12.687C17.6905 12.8694 17.4432 12.9718 17.1854 12.9718Z\" fill=\"#4266FF\"\/>\n                            <\/svg>\n                            <svg class=\"open\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                              <path d=\"M12.0002 23.6663C9.69272 23.6663 7.43709 22.9821 5.51851 21.7002C3.59994 20.4182 2.1046 18.5961 1.22157 16.4643C0.338551 14.3325 0.107512 11.9867 0.557673 9.72362C1.00783 7.46051 2.11898 5.38171 3.75059 3.7501C5.3822 2.11849 7.461 1.00735 9.72411 0.557185C11.9872 0.107024 14.333 0.338063 16.4648 1.22108C18.5966 2.10411 20.4187 3.59945 21.7006 5.51803C22.9826 7.4366 23.6668 9.69223 23.6668 11.9997C23.6668 15.0939 22.4377 18.0613 20.2497 20.2493C18.0618 22.4372 15.0944 23.6663 12.0002 23.6663ZM12.0002 2.27746C10.0773 2.27746 8.1976 2.84766 6.59879 3.91595C4.99998 4.98424 3.75386 6.50264 3.01801 8.27914C2.28215 10.0556 2.08962 12.0105 2.46476 13.8964C2.83989 15.7823 3.76584 17.5146 5.12552 18.8743C6.48519 20.234 8.21753 21.16 10.1035 21.5351C11.9894 21.9102 13.9442 21.7177 15.7207 20.9818C17.4972 20.246 19.0156 18.9999 20.0839 17.4011C21.1522 15.8022 21.7224 13.9226 21.7224 11.9997C21.7224 9.42118 20.6981 6.9483 18.8748 5.12503C17.0515 3.30176 14.5787 2.27746 12.0002 2.27746Z\" fill=\"#EF4444\"\/>\n                              <path d=\"M5.84241 11.9996C5.84577 11.7428 5.94928 11.4974 6.13088 11.3158C6.31249 11.1342 6.55783 11.0307 6.81464 11.0273L17.185 11.0273C17.4429 11.0273 17.6901 11.1298 17.8725 11.3121C18.0548 11.4944 18.1572 11.7417 18.1572 11.9996C18.1572 12.2574 18.0548 12.5047 17.8725 12.687C17.6901 12.8694 17.4429 12.9718 17.185 12.9718L6.81464 12.9718C6.55783 12.9684 6.31249 12.8649 6.13088 12.6833C5.94928 12.5017 5.84577 12.2564 5.84241 11.9996Z\" fill=\"#EF4444\"\/>\n                              <path d=\"M17.1854 12.9718H6.815C6.55715 12.9718 6.30986 12.8694 6.12753 12.687C5.9452 12.5047 5.84277 12.2574 5.84277 11.9996C5.84277 11.7417 5.9452 11.4944 6.12753 11.3121C6.30986 11.1298 6.55715 11.0273 6.815 11.0273H17.1854C17.4432 11.0273 17.6905 11.1298 17.8728 11.3121C18.0552 11.4944 18.1576 11.7417 18.1576 11.9996C18.1576 12.2574 18.0552 12.5047 17.8728 12.687C17.6905 12.8694 17.4432 12.9718 17.1854 12.9718Z\" fill=\"#EF4444\"\/>\n                            <\/svg>\n                        <\/div>\n                        <div id=\"collapse_0\" class=\"collapse\" aria-labelledby=\"heading0\" data-parent=\"#accordion\">\n                            <div class=\"card-body\">\n                                <p> You need to use it to direct which pages and images will be crawled and which will not show up. As a result, the robots.txt file is certainly crucial for SEO.<\/p>\n                            <\/div>\n                        <\/div>\n                        <\/div>\n                        \n                    <div class=\"card faq\">\n                        <div class=\"card-header collapsed d-flex justify-content-between align-items-center d-flex\" id=\"heading1\"\n                             data-toggle=\"collapse\" data-target=\"#collapse_1\" aria-expanded=\"true\" role=\"button\"\n                             aria-controls=\"collapse_1\">\n                            What should robots.txt contain?\n                            <svg class=\"close\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                              <path d=\"M12.0002 23.6663C9.69272 23.6663 7.43709 22.9821 5.51851 21.7002C3.59994 20.4182 2.1046 18.5961 1.22157 16.4643C0.338551 14.3325 0.107512 11.9867 0.557673 9.72362C1.00783 7.46051 2.11898 5.38171 3.75059 3.7501C5.3822 2.11849 7.461 1.00735 9.72411 0.557185C11.9872 0.107024 14.333 0.338063 16.4648 1.22108C18.5966 2.10411 20.4187 3.59945 21.7006 5.51803C22.9826 7.4366 23.6668 9.69223 23.6668 11.9997C23.6668 15.0939 22.4377 18.0613 20.2497 20.2493C18.0618 22.4372 15.0944 23.6663 12.0002 23.6663ZM12.0002 2.27746C10.0773 2.27746 8.1976 2.84766 6.59879 3.91595C4.99998 4.98424 3.75386 6.50264 3.01801 8.27914C2.28215 10.0556 2.08962 12.0105 2.46476 13.8964C2.83989 15.7823 3.76584 17.5146 5.12552 18.8743C6.48519 20.234 8.21753 21.16 10.1035 21.5351C11.9894 21.9102 13.9442 21.7177 15.7207 20.9818C17.4972 20.246 19.0156 18.9999 20.0839 17.4011C21.1522 15.8022 21.7224 13.9226 21.7224 11.9997C21.7224 9.42118 20.6981 6.9483 18.8748 5.12503C17.0515 3.30176 14.5787 2.27746 12.0002 2.27746Z\" fill=\"#4266FF\"\/>\n                              <path d=\"M12.0001 18.1566C11.7432 18.1533 11.4979 18.0497 11.3163 17.8681C11.1347 17.6865 11.0312 17.4412 11.0278 17.1844V6.81402C11.0278 6.55617 11.1303 6.30888 11.3126 6.12655C11.4949 5.94423 11.7422 5.8418 12.0001 5.8418C12.2579 5.8418 12.5052 5.94423 12.6875 6.12655C12.8698 6.30888 12.9723 6.55617 12.9723 6.81402V17.1844C12.9689 17.4412 12.8654 17.6865 12.6838 17.8681C12.5022 18.0497 12.2569 18.1533 12.0001 18.1566Z\" fill=\"#4266FF\"\/>\n                              <path d=\"M17.1854 12.9718H6.815C6.55715 12.9718 6.30986 12.8694 6.12753 12.687C5.9452 12.5047 5.84277 12.2574 5.84277 11.9996C5.84277 11.7417 5.9452 11.4944 6.12753 11.3121C6.30986 11.1298 6.55715 11.0273 6.815 11.0273H17.1854C17.4432 11.0273 17.6905 11.1298 17.8728 11.3121C18.0552 11.4944 18.1576 11.7417 18.1576 11.9996C18.1576 12.2574 18.0552 12.5047 17.8728 12.687C17.6905 12.8694 17.4432 12.9718 17.1854 12.9718Z\" fill=\"#4266FF\"\/>\n                            <\/svg>\n                            <svg class=\"open\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                              <path d=\"M12.0002 23.6663C9.69272 23.6663 7.43709 22.9821 5.51851 21.7002C3.59994 20.4182 2.1046 18.5961 1.22157 16.4643C0.338551 14.3325 0.107512 11.9867 0.557673 9.72362C1.00783 7.46051 2.11898 5.38171 3.75059 3.7501C5.3822 2.11849 7.461 1.00735 9.72411 0.557185C11.9872 0.107024 14.333 0.338063 16.4648 1.22108C18.5966 2.10411 20.4187 3.59945 21.7006 5.51803C22.9826 7.4366 23.6668 9.69223 23.6668 11.9997C23.6668 15.0939 22.4377 18.0613 20.2497 20.2493C18.0618 22.4372 15.0944 23.6663 12.0002 23.6663ZM12.0002 2.27746C10.0773 2.27746 8.1976 2.84766 6.59879 3.91595C4.99998 4.98424 3.75386 6.50264 3.01801 8.27914C2.28215 10.0556 2.08962 12.0105 2.46476 13.8964C2.83989 15.7823 3.76584 17.5146 5.12552 18.8743C6.48519 20.234 8.21753 21.16 10.1035 21.5351C11.9894 21.9102 13.9442 21.7177 15.7207 20.9818C17.4972 20.246 19.0156 18.9999 20.0839 17.4011C21.1522 15.8022 21.7224 13.9226 21.7224 11.9997C21.7224 9.42118 20.6981 6.9483 18.8748 5.12503C17.0515 3.30176 14.5787 2.27746 12.0002 2.27746Z\" fill=\"#EF4444\"\/>\n                              <path d=\"M5.84241 11.9996C5.84577 11.7428 5.94928 11.4974 6.13088 11.3158C6.31249 11.1342 6.55783 11.0307 6.81464 11.0273L17.185 11.0273C17.4429 11.0273 17.6901 11.1298 17.8725 11.3121C18.0548 11.4944 18.1572 11.7417 18.1572 11.9996C18.1572 12.2574 18.0548 12.5047 17.8725 12.687C17.6901 12.8694 17.4429 12.9718 17.185 12.9718L6.81464 12.9718C6.55783 12.9684 6.31249 12.8649 6.13088 12.6833C5.94928 12.5017 5.84577 12.2564 5.84241 11.9996Z\" fill=\"#EF4444\"\/>\n                              <path d=\"M17.1854 12.9718H6.815C6.55715 12.9718 6.30986 12.8694 6.12753 12.687C5.9452 12.5047 5.84277 12.2574 5.84277 11.9996C5.84277 11.7417 5.9452 11.4944 6.12753 11.3121C6.30986 11.1298 6.55715 11.0273 6.815 11.0273H17.1854C17.4432 11.0273 17.6905 11.1298 17.8728 11.3121C18.0552 11.4944 18.1576 11.7417 18.1576 11.9996C18.1576 12.2574 18.0552 12.5047 17.8728 12.687C17.6905 12.8694 17.4432 12.9718 17.1854 12.9718Z\" fill=\"#EF4444\"\/>\n                            <\/svg>\n                        <\/div>\n                        <div id=\"collapse_1\" class=\"collapse\" aria-labelledby=\"heading1\" data-parent=\"#accordion\">\n                            <div class=\"card-body\">\n                                <p>It should contain Allow and Disallow commands.<\/p>\n                            <\/div>\n                        <\/div>\n                        <\/div>\n                        \n                    <div class=\"card faq\">\n                        <div class=\"card-header collapsed d-flex justify-content-between align-items-center d-flex\" id=\"heading2\"\n                             data-toggle=\"collapse\" data-target=\"#collapse_2\" aria-expanded=\"true\" role=\"button\"\n                             aria-controls=\"collapse_2\">\n                            Where should robot.txt be located?\n                            <svg class=\"close\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                              <path d=\"M12.0002 23.6663C9.69272 23.6663 7.43709 22.9821 5.51851 21.7002C3.59994 20.4182 2.1046 18.5961 1.22157 16.4643C0.338551 14.3325 0.107512 11.9867 0.557673 9.72362C1.00783 7.46051 2.11898 5.38171 3.75059 3.7501C5.3822 2.11849 7.461 1.00735 9.72411 0.557185C11.9872 0.107024 14.333 0.338063 16.4648 1.22108C18.5966 2.10411 20.4187 3.59945 21.7006 5.51803C22.9826 7.4366 23.6668 9.69223 23.6668 11.9997C23.6668 15.0939 22.4377 18.0613 20.2497 20.2493C18.0618 22.4372 15.0944 23.6663 12.0002 23.6663ZM12.0002 2.27746C10.0773 2.27746 8.1976 2.84766 6.59879 3.91595C4.99998 4.98424 3.75386 6.50264 3.01801 8.27914C2.28215 10.0556 2.08962 12.0105 2.46476 13.8964C2.83989 15.7823 3.76584 17.5146 5.12552 18.8743C6.48519 20.234 8.21753 21.16 10.1035 21.5351C11.9894 21.9102 13.9442 21.7177 15.7207 20.9818C17.4972 20.246 19.0156 18.9999 20.0839 17.4011C21.1522 15.8022 21.7224 13.9226 21.7224 11.9997C21.7224 9.42118 20.6981 6.9483 18.8748 5.12503C17.0515 3.30176 14.5787 2.27746 12.0002 2.27746Z\" fill=\"#4266FF\"\/>\n                              <path d=\"M12.0001 18.1566C11.7432 18.1533 11.4979 18.0497 11.3163 17.8681C11.1347 17.6865 11.0312 17.4412 11.0278 17.1844V6.81402C11.0278 6.55617 11.1303 6.30888 11.3126 6.12655C11.4949 5.94423 11.7422 5.8418 12.0001 5.8418C12.2579 5.8418 12.5052 5.94423 12.6875 6.12655C12.8698 6.30888 12.9723 6.55617 12.9723 6.81402V17.1844C12.9689 17.4412 12.8654 17.6865 12.6838 17.8681C12.5022 18.0497 12.2569 18.1533 12.0001 18.1566Z\" fill=\"#4266FF\"\/>\n                              <path d=\"M17.1854 12.9718H6.815C6.55715 12.9718 6.30986 12.8694 6.12753 12.687C5.9452 12.5047 5.84277 12.2574 5.84277 11.9996C5.84277 11.7417 5.9452 11.4944 6.12753 11.3121C6.30986 11.1298 6.55715 11.0273 6.815 11.0273H17.1854C17.4432 11.0273 17.6905 11.1298 17.8728 11.3121C18.0552 11.4944 18.1576 11.7417 18.1576 11.9996C18.1576 12.2574 18.0552 12.5047 17.8728 12.687C17.6905 12.8694 17.4432 12.9718 17.1854 12.9718Z\" fill=\"#4266FF\"\/>\n                            <\/svg>\n                            <svg class=\"open\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                              <path d=\"M12.0002 23.6663C9.69272 23.6663 7.43709 22.9821 5.51851 21.7002C3.59994 20.4182 2.1046 18.5961 1.22157 16.4643C0.338551 14.3325 0.107512 11.9867 0.557673 9.72362C1.00783 7.46051 2.11898 5.38171 3.75059 3.7501C5.3822 2.11849 7.461 1.00735 9.72411 0.557185C11.9872 0.107024 14.333 0.338063 16.4648 1.22108C18.5966 2.10411 20.4187 3.59945 21.7006 5.51803C22.9826 7.4366 23.6668 9.69223 23.6668 11.9997C23.6668 15.0939 22.4377 18.0613 20.2497 20.2493C18.0618 22.4372 15.0944 23.6663 12.0002 23.6663ZM12.0002 2.27746C10.0773 2.27746 8.1976 2.84766 6.59879 3.91595C4.99998 4.98424 3.75386 6.50264 3.01801 8.27914C2.28215 10.0556 2.08962 12.0105 2.46476 13.8964C2.83989 15.7823 3.76584 17.5146 5.12552 18.8743C6.48519 20.234 8.21753 21.16 10.1035 21.5351C11.9894 21.9102 13.9442 21.7177 15.7207 20.9818C17.4972 20.246 19.0156 18.9999 20.0839 17.4011C21.1522 15.8022 21.7224 13.9226 21.7224 11.9997C21.7224 9.42118 20.6981 6.9483 18.8748 5.12503C17.0515 3.30176 14.5787 2.27746 12.0002 2.27746Z\" fill=\"#EF4444\"\/>\n                              <path d=\"M5.84241 11.9996C5.84577 11.7428 5.94928 11.4974 6.13088 11.3158C6.31249 11.1342 6.55783 11.0307 6.81464 11.0273L17.185 11.0273C17.4429 11.0273 17.6901 11.1298 17.8725 11.3121C18.0548 11.4944 18.1572 11.7417 18.1572 11.9996C18.1572 12.2574 18.0548 12.5047 17.8725 12.687C17.6901 12.8694 17.4429 12.9718 17.185 12.9718L6.81464 12.9718C6.55783 12.9684 6.31249 12.8649 6.13088 12.6833C5.94928 12.5017 5.84577 12.2564 5.84241 11.9996Z\" fill=\"#EF4444\"\/>\n                              <path d=\"M17.1854 12.9718H6.815C6.55715 12.9718 6.30986 12.8694 6.12753 12.687C5.9452 12.5047 5.84277 12.2574 5.84277 11.9996C5.84277 11.7417 5.9452 11.4944 6.12753 11.3121C6.30986 11.1298 6.55715 11.0273 6.815 11.0273H17.1854C17.4432 11.0273 17.6905 11.1298 17.8728 11.3121C18.0552 11.4944 18.1576 11.7417 18.1576 11.9996C18.1576 12.2574 18.0552 12.5047 17.8728 12.687C17.6905 12.8694 17.4432 12.9718 17.1854 12.9718Z\" fill=\"#EF4444\"\/>\n                            <\/svg>\n                        <\/div>\n                        <div id=\"collapse_2\" class=\"collapse\" aria-labelledby=\"heading2\" data-parent=\"#accordion\">\n                            <div class=\"card-body\">\n                                <p>It must be located at the root of your website host.<\/p>\n                            <\/div>\n                        <\/div>\n                        <\/div>\n                        \n                    <div class=\"card faq\">\n                        <div class=\"card-header collapsed d-flex justify-content-between align-items-center d-flex\" id=\"heading3\"\n                             data-toggle=\"collapse\" data-target=\"#collapse_3\" aria-expanded=\"true\" role=\"button\"\n                             aria-controls=\"collapse_3\">\n                            Do I need a robots.txt file?\n                            <svg class=\"close\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                              <path d=\"M12.0002 23.6663C9.69272 23.6663 7.43709 22.9821 5.51851 21.7002C3.59994 20.4182 2.1046 18.5961 1.22157 16.4643C0.338551 14.3325 0.107512 11.9867 0.557673 9.72362C1.00783 7.46051 2.11898 5.38171 3.75059 3.7501C5.3822 2.11849 7.461 1.00735 9.72411 0.557185C11.9872 0.107024 14.333 0.338063 16.4648 1.22108C18.5966 2.10411 20.4187 3.59945 21.7006 5.51803C22.9826 7.4366 23.6668 9.69223 23.6668 11.9997C23.6668 15.0939 22.4377 18.0613 20.2497 20.2493C18.0618 22.4372 15.0944 23.6663 12.0002 23.6663ZM12.0002 2.27746C10.0773 2.27746 8.1976 2.84766 6.59879 3.91595C4.99998 4.98424 3.75386 6.50264 3.01801 8.27914C2.28215 10.0556 2.08962 12.0105 2.46476 13.8964C2.83989 15.7823 3.76584 17.5146 5.12552 18.8743C6.48519 20.234 8.21753 21.16 10.1035 21.5351C11.9894 21.9102 13.9442 21.7177 15.7207 20.9818C17.4972 20.246 19.0156 18.9999 20.0839 17.4011C21.1522 15.8022 21.7224 13.9226 21.7224 11.9997C21.7224 9.42118 20.6981 6.9483 18.8748 5.12503C17.0515 3.30176 14.5787 2.27746 12.0002 2.27746Z\" fill=\"#4266FF\"\/>\n                              <path d=\"M12.0001 18.1566C11.7432 18.1533 11.4979 18.0497 11.3163 17.8681C11.1347 17.6865 11.0312 17.4412 11.0278 17.1844V6.81402C11.0278 6.55617 11.1303 6.30888 11.3126 6.12655C11.4949 5.94423 11.7422 5.8418 12.0001 5.8418C12.2579 5.8418 12.5052 5.94423 12.6875 6.12655C12.8698 6.30888 12.9723 6.55617 12.9723 6.81402V17.1844C12.9689 17.4412 12.8654 17.6865 12.6838 17.8681C12.5022 18.0497 12.2569 18.1533 12.0001 18.1566Z\" fill=\"#4266FF\"\/>\n                              <path d=\"M17.1854 12.9718H6.815C6.55715 12.9718 6.30986 12.8694 6.12753 12.687C5.9452 12.5047 5.84277 12.2574 5.84277 11.9996C5.84277 11.7417 5.9452 11.4944 6.12753 11.3121C6.30986 11.1298 6.55715 11.0273 6.815 11.0273H17.1854C17.4432 11.0273 17.6905 11.1298 17.8728 11.3121C18.0552 11.4944 18.1576 11.7417 18.1576 11.9996C18.1576 12.2574 18.0552 12.5047 17.8728 12.687C17.6905 12.8694 17.4432 12.9718 17.1854 12.9718Z\" fill=\"#4266FF\"\/>\n                            <\/svg>\n                            <svg class=\"open\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                              <path d=\"M12.0002 23.6663C9.69272 23.6663 7.43709 22.9821 5.51851 21.7002C3.59994 20.4182 2.1046 18.5961 1.22157 16.4643C0.338551 14.3325 0.107512 11.9867 0.557673 9.72362C1.00783 7.46051 2.11898 5.38171 3.75059 3.7501C5.3822 2.11849 7.461 1.00735 9.72411 0.557185C11.9872 0.107024 14.333 0.338063 16.4648 1.22108C18.5966 2.10411 20.4187 3.59945 21.7006 5.51803C22.9826 7.4366 23.6668 9.69223 23.6668 11.9997C23.6668 15.0939 22.4377 18.0613 20.2497 20.2493C18.0618 22.4372 15.0944 23.6663 12.0002 23.6663ZM12.0002 2.27746C10.0773 2.27746 8.1976 2.84766 6.59879 3.91595C4.99998 4.98424 3.75386 6.50264 3.01801 8.27914C2.28215 10.0556 2.08962 12.0105 2.46476 13.8964C2.83989 15.7823 3.76584 17.5146 5.12552 18.8743C6.48519 20.234 8.21753 21.16 10.1035 21.5351C11.9894 21.9102 13.9442 21.7177 15.7207 20.9818C17.4972 20.246 19.0156 18.9999 20.0839 17.4011C21.1522 15.8022 21.7224 13.9226 21.7224 11.9997C21.7224 9.42118 20.6981 6.9483 18.8748 5.12503C17.0515 3.30176 14.5787 2.27746 12.0002 2.27746Z\" fill=\"#EF4444\"\/>\n                              <path d=\"M5.84241 11.9996C5.84577 11.7428 5.94928 11.4974 6.13088 11.3158C6.31249 11.1342 6.55783 11.0307 6.81464 11.0273L17.185 11.0273C17.4429 11.0273 17.6901 11.1298 17.8725 11.3121C18.0548 11.4944 18.1572 11.7417 18.1572 11.9996C18.1572 12.2574 18.0548 12.5047 17.8725 12.687C17.6901 12.8694 17.4429 12.9718 17.185 12.9718L6.81464 12.9718C6.55783 12.9684 6.31249 12.8649 6.13088 12.6833C5.94928 12.5017 5.84577 12.2564 5.84241 11.9996Z\" fill=\"#EF4444\"\/>\n                              <path d=\"M17.1854 12.9718H6.815C6.55715 12.9718 6.30986 12.8694 6.12753 12.687C5.9452 12.5047 5.84277 12.2574 5.84277 11.9996C5.84277 11.7417 5.9452 11.4944 6.12753 11.3121C6.30986 11.1298 6.55715 11.0273 6.815 11.0273H17.1854C17.4432 11.0273 17.6905 11.1298 17.8728 11.3121C18.0552 11.4944 18.1576 11.7417 18.1576 11.9996C18.1576 12.2574 18.0552 12.5047 17.8728 12.687C17.6905 12.8694 17.4432 12.9718 17.1854 12.9718Z\" fill=\"#EF4444\"\/>\n                            <\/svg>\n                        <\/div>\n                        <div id=\"collapse_3\" class=\"collapse\" aria-labelledby=\"heading3\" data-parent=\"#accordion\">\n                            <div class=\"card-body\">\n                                <p>It is not compulsory because if you don&#8217;t have a robots.txt file, the search engine bots will normally crawl your website. However, sometimes you should direct some pages or not. In this situation, you need to navigate the bots. <\/p>\n                            <\/div>\n                        <\/div>\n                        <\/div>\n                        \n                    <div class=\"card faq\">\n                        <div class=\"card-header collapsed d-flex justify-content-between align-items-center d-flex\" id=\"heading4\"\n                             data-toggle=\"collapse\" data-target=\"#collapse_4\" aria-expanded=\"true\" role=\"button\"\n                             aria-controls=\"collapse_4\">\n                            What happens if you don&#8217;t use a robots.txt file?\n                            <svg class=\"close\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                              <path d=\"M12.0002 23.6663C9.69272 23.6663 7.43709 22.9821 5.51851 21.7002C3.59994 20.4182 2.1046 18.5961 1.22157 16.4643C0.338551 14.3325 0.107512 11.9867 0.557673 9.72362C1.00783 7.46051 2.11898 5.38171 3.75059 3.7501C5.3822 2.11849 7.461 1.00735 9.72411 0.557185C11.9872 0.107024 14.333 0.338063 16.4648 1.22108C18.5966 2.10411 20.4187 3.59945 21.7006 5.51803C22.9826 7.4366 23.6668 9.69223 23.6668 11.9997C23.6668 15.0939 22.4377 18.0613 20.2497 20.2493C18.0618 22.4372 15.0944 23.6663 12.0002 23.6663ZM12.0002 2.27746C10.0773 2.27746 8.1976 2.84766 6.59879 3.91595C4.99998 4.98424 3.75386 6.50264 3.01801 8.27914C2.28215 10.0556 2.08962 12.0105 2.46476 13.8964C2.83989 15.7823 3.76584 17.5146 5.12552 18.8743C6.48519 20.234 8.21753 21.16 10.1035 21.5351C11.9894 21.9102 13.9442 21.7177 15.7207 20.9818C17.4972 20.246 19.0156 18.9999 20.0839 17.4011C21.1522 15.8022 21.7224 13.9226 21.7224 11.9997C21.7224 9.42118 20.6981 6.9483 18.8748 5.12503C17.0515 3.30176 14.5787 2.27746 12.0002 2.27746Z\" fill=\"#4266FF\"\/>\n                              <path d=\"M12.0001 18.1566C11.7432 18.1533 11.4979 18.0497 11.3163 17.8681C11.1347 17.6865 11.0312 17.4412 11.0278 17.1844V6.81402C11.0278 6.55617 11.1303 6.30888 11.3126 6.12655C11.4949 5.94423 11.7422 5.8418 12.0001 5.8418C12.2579 5.8418 12.5052 5.94423 12.6875 6.12655C12.8698 6.30888 12.9723 6.55617 12.9723 6.81402V17.1844C12.9689 17.4412 12.8654 17.6865 12.6838 17.8681C12.5022 18.0497 12.2569 18.1533 12.0001 18.1566Z\" fill=\"#4266FF\"\/>\n                              <path d=\"M17.1854 12.9718H6.815C6.55715 12.9718 6.30986 12.8694 6.12753 12.687C5.9452 12.5047 5.84277 12.2574 5.84277 11.9996C5.84277 11.7417 5.9452 11.4944 6.12753 11.3121C6.30986 11.1298 6.55715 11.0273 6.815 11.0273H17.1854C17.4432 11.0273 17.6905 11.1298 17.8728 11.3121C18.0552 11.4944 18.1576 11.7417 18.1576 11.9996C18.1576 12.2574 18.0552 12.5047 17.8728 12.687C17.6905 12.8694 17.4432 12.9718 17.1854 12.9718Z\" fill=\"#4266FF\"\/>\n                            <\/svg>\n                            <svg class=\"open\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                              <path d=\"M12.0002 23.6663C9.69272 23.6663 7.43709 22.9821 5.51851 21.7002C3.59994 20.4182 2.1046 18.5961 1.22157 16.4643C0.338551 14.3325 0.107512 11.9867 0.557673 9.72362C1.00783 7.46051 2.11898 5.38171 3.75059 3.7501C5.3822 2.11849 7.461 1.00735 9.72411 0.557185C11.9872 0.107024 14.333 0.338063 16.4648 1.22108C18.5966 2.10411 20.4187 3.59945 21.7006 5.51803C22.9826 7.4366 23.6668 9.69223 23.6668 11.9997C23.6668 15.0939 22.4377 18.0613 20.2497 20.2493C18.0618 22.4372 15.0944 23.6663 12.0002 23.6663ZM12.0002 2.27746C10.0773 2.27746 8.1976 2.84766 6.59879 3.91595C4.99998 4.98424 3.75386 6.50264 3.01801 8.27914C2.28215 10.0556 2.08962 12.0105 2.46476 13.8964C2.83989 15.7823 3.76584 17.5146 5.12552 18.8743C6.48519 20.234 8.21753 21.16 10.1035 21.5351C11.9894 21.9102 13.9442 21.7177 15.7207 20.9818C17.4972 20.246 19.0156 18.9999 20.0839 17.4011C21.1522 15.8022 21.7224 13.9226 21.7224 11.9997C21.7224 9.42118 20.6981 6.9483 18.8748 5.12503C17.0515 3.30176 14.5787 2.27746 12.0002 2.27746Z\" fill=\"#EF4444\"\/>\n                              <path d=\"M5.84241 11.9996C5.84577 11.7428 5.94928 11.4974 6.13088 11.3158C6.31249 11.1342 6.55783 11.0307 6.81464 11.0273L17.185 11.0273C17.4429 11.0273 17.6901 11.1298 17.8725 11.3121C18.0548 11.4944 18.1572 11.7417 18.1572 11.9996C18.1572 12.2574 18.0548 12.5047 17.8725 12.687C17.6901 12.8694 17.4429 12.9718 17.185 12.9718L6.81464 12.9718C6.55783 12.9684 6.31249 12.8649 6.13088 12.6833C5.94928 12.5017 5.84577 12.2564 5.84241 11.9996Z\" fill=\"#EF4444\"\/>\n                              <path d=\"M17.1854 12.9718H6.815C6.55715 12.9718 6.30986 12.8694 6.12753 12.687C5.9452 12.5047 5.84277 12.2574 5.84277 11.9996C5.84277 11.7417 5.9452 11.4944 6.12753 11.3121C6.30986 11.1298 6.55715 11.0273 6.815 11.0273H17.1854C17.4432 11.0273 17.6905 11.1298 17.8728 11.3121C18.0552 11.4944 18.1576 11.7417 18.1576 11.9996C18.1576 12.2574 18.0552 12.5047 17.8728 12.687C17.6905 12.8694 17.4432 12.9718 17.1854 12.9718Z\" fill=\"#EF4444\"\/>\n                            <\/svg>\n                        <\/div>\n                        <div id=\"collapse_4\" class=\"collapse\" aria-labelledby=\"heading4\" data-parent=\"#accordion\">\n                            <div class=\"card-body\">\n                                <p>If you don&#8217;t use a robots.txt file, the search engine bots will crawl your website normally and index the pages.<\/p>\n                            <\/div>\n                        <\/div>\n                        <\/div>\n                        <\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>If you are familiar with SEO, you know that your web pages should be indexed to be on the SERP. Okay, but how is your website indexed on search engines? The invisible heroes are search engine bots. You can allow or not allow them to visit your website, thanks to [&hellip;]<\/p>\n","protected":false},"author":27,"featured_media":15748,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24],"tags":[],"class_list":["post-529","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technical-seo","entry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>What Is Robots.txt? (+Including Example Codes)<\/title>\n<meta name=\"description\" content=\"Robots.txt is a crucial SEO file for crawlers to crawl your web pages efficiently. Read more to find out how to rank higher with robots.txt.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.dopinger.com\/blog\/what-is-robots-txt\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What Is Robots.txt? (+Including Example Codes)\" \/>\n<meta property=\"og:description\" content=\"Robots.txt is a crucial SEO file for crawlers to crawl your web pages efficiently. Read more to find out how to rank higher with robots.txt.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dopinger.com\/blog\/what-is-robots-txt\" \/>\n<meta property=\"og:site_name\" content=\"Dopinger Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/dopingercom\/\" \/>\n<meta property=\"article:published_time\" content=\"2020-04-08T17:33:40+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-08-08T08:27:33+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/storage.googleapis.com\/dopingcloud\/blog\/en\/2020\/04\/what-is-robots-txt.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"960\" \/>\n\t<meta property=\"og:image:height\" content=\"640\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Ay\u015fenur Tekin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@aysnrt_d\" \/>\n<meta name=\"twitter:site\" content=\"@dopingercom\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ay\u015fenur Tekin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.dopinger.com\/blog\/what-is-robots-txt#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.dopinger.com\/blog\/what-is-robots-txt\"},\"author\":{\"name\":\"Ay\u015fenur Tekin\",\"@id\":\"https:\/\/www.dopinger.com\/blog\/#\/schema\/person\/abf7bdbd08a93684eb25f25db081da59\"},\"headline\":\"What Is Robots.txt? (+Including Example Codes)\",\"datePublished\":\"2020-04-08T17:33:40+00:00\",\"dateModified\":\"2024-08-08T08:27:33+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.dopinger.com\/blog\/what-is-robots-txt\"},\"wordCount\":1147,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.dopinger.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.dopinger.com\/blog\/what-is-robots-txt#primaryimage\"},\"thumbnailUrl\":\"https:\/\/storage.googleapis.com\/dopingcloud\/blog\/en\/2020\/04\/what-is-robots-txt.jpg\",\"articleSection\":[\"Technical SEO\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.dopinger.com\/blog\/what-is-robots-txt#respond\"]}]},{\"@type\":[\"WebPage\",\"FAQPage\"],\"@id\":\"https:\/\/www.dopinger.com\/blog\/what-is-robots-txt\",\"url\":\"https:\/\/www.dopinger.com\/blog\/what-is-robots-txt\",\"name\":\"What Is Robots.txt? (+Including Example Codes)\",\"isPartOf\":{\"@id\":\"https:\/\/www.dopinger.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.dopinger.com\/blog\/what-is-robots-txt#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.dopinger.com\/blog\/what-is-robots-txt#primaryimage\"},\"thumbnailUrl\":\"https:\/\/storage.googleapis.com\/dopingcloud\/blog\/en\/2020\/04\/what-is-robots-txt.jpg\",\"datePublished\":\"2020-04-08T17:33:40+00:00\",\"dateModified\":\"2024-08-08T08:27:33+00:00\",\"description\":\"Robots.txt is a crucial SEO file for crawlers to crawl your web pages efficiently. Read more to find out how to rank higher with robots.txt.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.dopinger.com\/blog\/what-is-robots-txt#breadcrumb\"},\"mainEntity\":[{\"@id\":\"https:\/\/www.dopinger.com\/blog\/what-is-robots-txt#faq-question-1586365476938\"},{\"@id\":\"https:\/\/www.dopinger.com\/blog\/what-is-robots-txt#faq-question-1586365478088\"},{\"@id\":\"https:\/\/www.dopinger.com\/blog\/what-is-robots-txt#faq-question-1586365478834\"},{\"@id\":\"https:\/\/www.dopinger.com\/blog\/what-is-robots-txt#faq-question-1675430298754\"},{\"@id\":\"https:\/\/www.dopinger.com\/blog\/what-is-robots-txt#faq-question-1675430444665\"}],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.dopinger.com\/blog\/what-is-robots-txt\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.dopinger.com\/blog\/what-is-robots-txt#primaryimage\",\"url\":\"https:\/\/storage.googleapis.com\/dopingcloud\/blog\/en\/2020\/04\/what-is-robots-txt.jpg\",\"contentUrl\":\"https:\/\/storage.googleapis.com\/dopingcloud\/blog\/en\/2020\/04\/what-is-robots-txt.jpg\",\"width\":960,\"height\":640,\"caption\":\"what is robots txt\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.dopinger.com\/blog\/what-is-robots-txt#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.dopinger.com\/blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"What Is Robots.txt? (+Including Example Codes)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.dopinger.com\/blog\/#website\",\"url\":\"https:\/\/www.dopinger.com\/blog\/\",\"name\":\"Dopinger Blog\",\"description\":\"Dopinger\",\"publisher\":{\"@id\":\"https:\/\/www.dopinger.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.dopinger.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.dopinger.com\/blog\/#organization\",\"name\":\"Dopinger Blog\",\"url\":\"https:\/\/www.dopinger.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.dopinger.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/storage.googleapis.com\/dopingcloud\/blog\/en\/2022\/02\/dopinger-blog-logo.png\",\"contentUrl\":\"https:\/\/storage.googleapis.com\/dopingcloud\/blog\/en\/2022\/02\/dopinger-blog-logo.png\",\"width\":157,\"height\":48,\"caption\":\"Dopinger Blog\"},\"image\":{\"@id\":\"https:\/\/www.dopinger.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/dopingercom\/\",\"https:\/\/x.com\/dopingercom\",\"https:\/\/www.instagram.com\/dopinger_com\/\",\"https:\/\/www.linkedin.com\/company\/dopingercom\/\",\"https:\/\/tr.pinterest.com\/dopingercom\/_saved\/\",\"https:\/\/www.youtube.com\/dopinger\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.dopinger.com\/blog\/#\/schema\/person\/abf7bdbd08a93684eb25f25db081da59\",\"name\":\"Ay\u015fenur Tekin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.dopinger.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.dopinger.com\/blog\/wp-content\/uploads\/2022\/12\/aysenur-tekin-96x96.png\",\"contentUrl\":\"https:\/\/www.dopinger.com\/blog\/wp-content\/uploads\/2022\/12\/aysenur-tekin-96x96.png\",\"caption\":\"Ay\u015fenur Tekin\"},\"description\":\"After graduating from Istanbul Aydin University, English Translation, and Interpreting department, Ay\u015fenur Tekin is interested in writing and editing articles. She started her master's degree in New Media (at IAU) and started to gain knowledge in the fields of digital marketing and SEO. She is currently an SEO Content Editor at Dopinger. She likes to watch science fiction series. She is also interested in different cultures and wants to travel the world someday. Ay\u015fenur is always looking for new adventures to live every day to its fullest.\",\"sameAs\":[\"https:\/\/www.linkedin.com\/in\/aysenur-tekin\/\",\"https:\/\/x.com\/aysnrt_d\"],\"url\":\"https:\/\/www.dopinger.com\/blog\/author\/aysenurtekin\"},{\"@type\":\"Question\",\"@id\":\"https:\/\/www.dopinger.com\/blog\/what-is-robots-txt#faq-question-1586365476938\",\"position\":1,\"url\":\"https:\/\/www.dopinger.com\/blog\/what-is-robots-txt#faq-question-1586365476938\",\"name\":\"Is the robots.txt file important to use for SEO?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\" You need to use it to direct which pages and images will be crawled and which will not show up. As a result, the robots.txt file is certainly crucial for SEO.\",\"inLanguage\":\"en-US\"},\"inLanguage\":\"en-US\"},{\"@type\":\"Question\",\"@id\":\"https:\/\/www.dopinger.com\/blog\/what-is-robots-txt#faq-question-1586365478088\",\"position\":2,\"url\":\"https:\/\/www.dopinger.com\/blog\/what-is-robots-txt#faq-question-1586365478088\",\"name\":\"What should robots.txt contain?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"It should contain Allow and Disallow commands.\",\"inLanguage\":\"en-US\"},\"inLanguage\":\"en-US\"},{\"@type\":\"Question\",\"@id\":\"https:\/\/www.dopinger.com\/blog\/what-is-robots-txt#faq-question-1586365478834\",\"position\":3,\"url\":\"https:\/\/www.dopinger.com\/blog\/what-is-robots-txt#faq-question-1586365478834\",\"name\":\"Where should robot.txt be located?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"It must be located at the root of your website host.\",\"inLanguage\":\"en-US\"},\"inLanguage\":\"en-US\"},{\"@type\":\"Question\",\"@id\":\"https:\/\/www.dopinger.com\/blog\/what-is-robots-txt#faq-question-1675430298754\",\"position\":4,\"url\":\"https:\/\/www.dopinger.com\/blog\/what-is-robots-txt#faq-question-1675430298754\",\"name\":\"Do I need a robots.txt file?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"It is not compulsory because if you don't have a robots.txt file, the search engine bots will normally crawl your website. However, sometimes you should direct some pages or not. In this situation, you need to navigate the bots. \",\"inLanguage\":\"en-US\"},\"inLanguage\":\"en-US\"},{\"@type\":\"Question\",\"@id\":\"https:\/\/www.dopinger.com\/blog\/what-is-robots-txt#faq-question-1675430444665\",\"position\":5,\"url\":\"https:\/\/www.dopinger.com\/blog\/what-is-robots-txt#faq-question-1675430444665\",\"name\":\"What happens if you don't use a robots.txt file?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"If you don't use a robots.txt file, the search engine bots will crawl your website normally and index the pages.\",\"inLanguage\":\"en-US\"},\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What Is Robots.txt? (+Including Example Codes)","description":"Robots.txt is a crucial SEO file for crawlers to crawl your web pages efficiently. Read more to find out how to rank higher with robots.txt.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.dopinger.com\/blog\/what-is-robots-txt","og_locale":"en_US","og_type":"article","og_title":"What Is Robots.txt? (+Including Example Codes)","og_description":"Robots.txt is a crucial SEO file for crawlers to crawl your web pages efficiently. Read more to find out how to rank higher with robots.txt.","og_url":"https:\/\/www.dopinger.com\/blog\/what-is-robots-txt","og_site_name":"Dopinger Blog","article_publisher":"https:\/\/www.facebook.com\/dopingercom\/","article_published_time":"2020-04-08T17:33:40+00:00","article_modified_time":"2024-08-08T08:27:33+00:00","og_image":[{"width":960,"height":640,"url":"https:\/\/storage.googleapis.com\/dopingcloud\/blog\/en\/2020\/04\/what-is-robots-txt.jpg","type":"image\/jpeg"}],"author":"Ay\u015fenur Tekin","twitter_card":"summary_large_image","twitter_creator":"@aysnrt_d","twitter_site":"@dopingercom","twitter_misc":{"Written by":"Ay\u015fenur Tekin","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dopinger.com\/blog\/what-is-robots-txt#article","isPartOf":{"@id":"https:\/\/www.dopinger.com\/blog\/what-is-robots-txt"},"author":{"name":"Ay\u015fenur Tekin","@id":"https:\/\/www.dopinger.com\/blog\/#\/schema\/person\/abf7bdbd08a93684eb25f25db081da59"},"headline":"What Is Robots.txt? (+Including Example Codes)","datePublished":"2020-04-08T17:33:40+00:00","dateModified":"2024-08-08T08:27:33+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dopinger.com\/blog\/what-is-robots-txt"},"wordCount":1147,"commentCount":0,"publisher":{"@id":"https:\/\/www.dopinger.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.dopinger.com\/blog\/what-is-robots-txt#primaryimage"},"thumbnailUrl":"https:\/\/storage.googleapis.com\/dopingcloud\/blog\/en\/2020\/04\/what-is-robots-txt.jpg","articleSection":["Technical SEO"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dopinger.com\/blog\/what-is-robots-txt#respond"]}]},{"@type":["WebPage","FAQPage"],"@id":"https:\/\/www.dopinger.com\/blog\/what-is-robots-txt","url":"https:\/\/www.dopinger.com\/blog\/what-is-robots-txt","name":"What Is Robots.txt? (+Including Example Codes)","isPartOf":{"@id":"https:\/\/www.dopinger.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.dopinger.com\/blog\/what-is-robots-txt#primaryimage"},"image":{"@id":"https:\/\/www.dopinger.com\/blog\/what-is-robots-txt#primaryimage"},"thumbnailUrl":"https:\/\/storage.googleapis.com\/dopingcloud\/blog\/en\/2020\/04\/what-is-robots-txt.jpg","datePublished":"2020-04-08T17:33:40+00:00","dateModified":"2024-08-08T08:27:33+00:00","description":"Robots.txt is a crucial SEO file for crawlers to crawl your web pages efficiently. Read more to find out how to rank higher with robots.txt.","breadcrumb":{"@id":"https:\/\/www.dopinger.com\/blog\/what-is-robots-txt#breadcrumb"},"mainEntity":[{"@id":"https:\/\/www.dopinger.com\/blog\/what-is-robots-txt#faq-question-1586365476938"},{"@id":"https:\/\/www.dopinger.com\/blog\/what-is-robots-txt#faq-question-1586365478088"},{"@id":"https:\/\/www.dopinger.com\/blog\/what-is-robots-txt#faq-question-1586365478834"},{"@id":"https:\/\/www.dopinger.com\/blog\/what-is-robots-txt#faq-question-1675430298754"},{"@id":"https:\/\/www.dopinger.com\/blog\/what-is-robots-txt#faq-question-1675430444665"}],"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dopinger.com\/blog\/what-is-robots-txt"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dopinger.com\/blog\/what-is-robots-txt#primaryimage","url":"https:\/\/storage.googleapis.com\/dopingcloud\/blog\/en\/2020\/04\/what-is-robots-txt.jpg","contentUrl":"https:\/\/storage.googleapis.com\/dopingcloud\/blog\/en\/2020\/04\/what-is-robots-txt.jpg","width":960,"height":640,"caption":"what is robots txt"},{"@type":"BreadcrumbList","@id":"https:\/\/www.dopinger.com\/blog\/what-is-robots-txt#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.dopinger.com\/blog"},{"@type":"ListItem","position":2,"name":"What Is Robots.txt? (+Including Example Codes)"}]},{"@type":"WebSite","@id":"https:\/\/www.dopinger.com\/blog\/#website","url":"https:\/\/www.dopinger.com\/blog\/","name":"Dopinger Blog","description":"Dopinger","publisher":{"@id":"https:\/\/www.dopinger.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dopinger.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.dopinger.com\/blog\/#organization","name":"Dopinger Blog","url":"https:\/\/www.dopinger.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dopinger.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/storage.googleapis.com\/dopingcloud\/blog\/en\/2022\/02\/dopinger-blog-logo.png","contentUrl":"https:\/\/storage.googleapis.com\/dopingcloud\/blog\/en\/2022\/02\/dopinger-blog-logo.png","width":157,"height":48,"caption":"Dopinger Blog"},"image":{"@id":"https:\/\/www.dopinger.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/dopingercom\/","https:\/\/x.com\/dopingercom","https:\/\/www.instagram.com\/dopinger_com\/","https:\/\/www.linkedin.com\/company\/dopingercom\/","https:\/\/tr.pinterest.com\/dopingercom\/_saved\/","https:\/\/www.youtube.com\/dopinger"]},{"@type":"Person","@id":"https:\/\/www.dopinger.com\/blog\/#\/schema\/person\/abf7bdbd08a93684eb25f25db081da59","name":"Ay\u015fenur Tekin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dopinger.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/www.dopinger.com\/blog\/wp-content\/uploads\/2022\/12\/aysenur-tekin-96x96.png","contentUrl":"https:\/\/www.dopinger.com\/blog\/wp-content\/uploads\/2022\/12\/aysenur-tekin-96x96.png","caption":"Ay\u015fenur Tekin"},"description":"After graduating from Istanbul Aydin University, English Translation, and Interpreting department, Ay\u015fenur Tekin is interested in writing and editing articles. She started her master's degree in New Media (at IAU) and started to gain knowledge in the fields of digital marketing and SEO. She is currently an SEO Content Editor at Dopinger. She likes to watch science fiction series. She is also interested in different cultures and wants to travel the world someday. Ay\u015fenur is always looking for new adventures to live every day to its fullest.","sameAs":["https:\/\/www.linkedin.com\/in\/aysenur-tekin\/","https:\/\/x.com\/aysnrt_d"],"url":"https:\/\/www.dopinger.com\/blog\/author\/aysenurtekin"},{"@type":"Question","@id":"https:\/\/www.dopinger.com\/blog\/what-is-robots-txt#faq-question-1586365476938","position":1,"url":"https:\/\/www.dopinger.com\/blog\/what-is-robots-txt#faq-question-1586365476938","name":"Is the robots.txt file important to use for SEO?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":" You need to use it to direct which pages and images will be crawled and which will not show up. As a result, the robots.txt file is certainly crucial for SEO.","inLanguage":"en-US"},"inLanguage":"en-US"},{"@type":"Question","@id":"https:\/\/www.dopinger.com\/blog\/what-is-robots-txt#faq-question-1586365478088","position":2,"url":"https:\/\/www.dopinger.com\/blog\/what-is-robots-txt#faq-question-1586365478088","name":"What should robots.txt contain?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"It should contain Allow and Disallow commands.","inLanguage":"en-US"},"inLanguage":"en-US"},{"@type":"Question","@id":"https:\/\/www.dopinger.com\/blog\/what-is-robots-txt#faq-question-1586365478834","position":3,"url":"https:\/\/www.dopinger.com\/blog\/what-is-robots-txt#faq-question-1586365478834","name":"Where should robot.txt be located?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"It must be located at the root of your website host.","inLanguage":"en-US"},"inLanguage":"en-US"},{"@type":"Question","@id":"https:\/\/www.dopinger.com\/blog\/what-is-robots-txt#faq-question-1675430298754","position":4,"url":"https:\/\/www.dopinger.com\/blog\/what-is-robots-txt#faq-question-1675430298754","name":"Do I need a robots.txt file?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"It is not compulsory because if you don't have a robots.txt file, the search engine bots will normally crawl your website. However, sometimes you should direct some pages or not. In this situation, you need to navigate the bots. ","inLanguage":"en-US"},"inLanguage":"en-US"},{"@type":"Question","@id":"https:\/\/www.dopinger.com\/blog\/what-is-robots-txt#faq-question-1675430444665","position":5,"url":"https:\/\/www.dopinger.com\/blog\/what-is-robots-txt#faq-question-1675430444665","name":"What happens if you don't use a robots.txt file?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"If you don't use a robots.txt file, the search engine bots will crawl your website normally and index the pages.","inLanguage":"en-US"},"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/www.dopinger.com\/blog\/wp-json\/wp\/v2\/posts\/529","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dopinger.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dopinger.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dopinger.com\/blog\/wp-json\/wp\/v2\/users\/27"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dopinger.com\/blog\/wp-json\/wp\/v2\/comments?post=529"}],"version-history":[{"count":6,"href":"https:\/\/www.dopinger.com\/blog\/wp-json\/wp\/v2\/posts\/529\/revisions"}],"predecessor-version":[{"id":23141,"href":"https:\/\/www.dopinger.com\/blog\/wp-json\/wp\/v2\/posts\/529\/revisions\/23141"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.dopinger.com\/blog\/wp-json\/wp\/v2\/media\/15748"}],"wp:attachment":[{"href":"https:\/\/www.dopinger.com\/blog\/wp-json\/wp\/v2\/media?parent=529"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dopinger.com\/blog\/wp-json\/wp\/v2\/categories?post=529"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dopinger.com\/blog\/wp-json\/wp\/v2\/tags?post=529"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}