Take control over where search engine crawlers go with the robot.txt file, a tiny file with big SEO power which does just that. Put simply, creating and adding this to your root directory tells Google what to index and what to skip. Our custom robots.txt generator makes it easy to quickly generate a robots txt file that's error-free and does the job.
Before jumping into how the robots.txt file generator works, let's dig a little deeper into why you'd want one in the first place. Not all pages on your site represent SEO value. Think check-out confirmation pages, login pages, duplicate content, admin and staging areas of a site, etc. It's not just that these sorts of pages don't improve SEO if they're included in a crawl, it's that they can actively work against your search engine optimization efforts by taking up precious crawl budget. That may mean missing genuinely valuable content in favor of pages that don't really matter. Moreover, it's not just Google that crawls your site, excluding other 3rd party crawlers can help keep your site speedy.
A robots txt generator lets you block portions of the site from indexing so Google goes exactly where you want it to. Without further ado, here's how to create a robots txt file.
After you create a robots.txt file, you might find yourself wondering what exactly all of that jargon is that you're looking at in all those groups of text. Let's break down the output directives of our robots txt generator online.
|This is the search engine crawler that the following lines of text will apply to. There are tons of user-agents out there but some of the most common are Googlebot, Bingbot, Slurp and Baiduspider (all case sensitive). The one exception is an *. The asterisk applies to all crawlers (except AdsBot crawlers, those need to be named individually).
|Always the second thing you'll see in each grouping, disallow lists what you don't want a crawler to access or index. Leaving this blank means you're not disallowing anything from that user-agent's crawler and they can index your entire site. On the flipside, if you want your entire site blocked from that crawler, you'll see a “/”. You can also have particular directories or pages listed here, all of which would have to be listed on separate lines.
|This essentially lets you create exceptions to the disallow directive for particular directories, subdirectories or pages.
|Exactly what it sounds like, the number you see here represents a delay in seconds before a crawler will access your site in an attempt to save bandwidth and not generate a traffic peak. Google doesn't support this one anymore, i.e., Google ignores this, but other search engines may still follow this directive.
|While it's smart to submit your sitemap directly to Google Search Console, there are other search engines out there and this robot txt file generator directive tells their crawlers where your sitemap is.
This is all stuff we handle for you when creating a robots.txt file but it's still good to know some best practices in case you need to make changes down the road or want to know how to make a robots.txt file that gets the job done on your own.