Build Your Robots.txt File
Robots.txt Explained: How to Control What Search Engines Crawl
Most site owners never open their robots.txt file. It is a small text file sitting in your root folder, and it quietly decides which parts of your site Google is allowed to look at. Set it up well and your best pages get picked up faster. Set it up badly and you can hide your whole site from search by accident. That happens more often than you would think. This page explains what the file does, how to write one without breaking things, and the errors people keep making. The tool above will build the file for you.
1. What a robots.txt file actually is
It is a plain text file. Nothing more. You put it in the top folder of your site so it loads at yourdomain.com/robots.txt. Any text editor can make one.
Its job is talking to bots. When Googlebot, Bingbot, or any other crawler shows up at your domain, this file is the first thing it asks for. It reads the rules line by line and decides where to go next. If the file is not there, the bot shrugs and crawls everything, which is fine for plenty of small sites. But here is the part people miss: these are requests, not locks. Google and Bing follow them. Scrapers and spam bots often ignore them completely, so never use robots.txt to protect anything.
2. How crawlers read your rules
Search engines do three separate jobs. They crawl, they index, then they rank. Robots.txt only affects the first one. It has no say in whether a page ranks well.
Picture a bot arriving with a stopwatch running. Your robots.txt is the sign at the door telling it which rooms to skip. Skip the pointless ones and it spends its time on pages you actually want people to find. You are not hiding anything here. You are just directing traffic.
3. Crawl budget, and why it matters
Google will not crawl your site endlessly. Every domain gets a rough allowance for how many pages get fetched and how often. People call it your crawl budget. Google works this way so its servers do not hammer yours.
Small sites hardly ever hit the limit. Bigger ones do, constantly. Run a shop with thousands of filter and sort URLs, or a blog with hundreds of tag pages, and bots can burn the whole allowance on pages nobody searches for. Meanwhile the post you published on Monday still is not indexed by Friday. Blocking the dead weight fixes that.
4. The four lines you need to know
The syntax is short. Four directives cover nearly everything you will ever write. Spelling and slashes matter though, so copy them exactly:
- User-agent: names the bot that the rules below apply to. An asterisk (
*) means all of them. - Disallow: tells that bot to stay out of a path. Everything underneath it is blocked too, not just the folder itself.
- Allow: an exception to a Disallow. Use it when you have blocked a folder but need one file inside it to stay open.
- Sitemap: points to your XML sitemap. This one ignores user-agent blocks, so give it its own line at the top or the bottom.
5. Wildcards for finer control
Two symbols let you write smarter rules. The asterisk stands in for any run of characters. Say your internal search results all have a question mark in the URL and you would rather Google skipped them. One line does it: Disallow: /*?*
The dollar sign marks the end of a URL, which is handy for file types. To keep your PDFs out of search, write Disallow: /*.pdf$ and you are done. Google and Bing both understand these. Smaller crawlers sometimes do not, so do not lean on wildcards for anything you really need blocked.
6. The mistakes that cost people traffic
The worst one is a single character. Disallow: / with nothing after the slash blocks your entire site. Every page, gone. It usually happens when someone pushes a staging site live and forgets to change the file. Traffic drops off within a couple of weeks. Read that line twice before you upload.
The second mistake is treating the file as a hiding place. Anyone can read it. Type /robots.txt after any domain and there it is. So listing your admin folder does not hide it, it advertises it. Put private pages behind a password. If you want a page kept out of Google but still reachable by people, use a noindex meta tag instead. Robots.txt and noindex do different jobs, and people mix them up all the time.
7. Using the generator on this page
The tool at the top writes the file for you. Work through it in this order:
- Pick a user-agent. Leave it on All Robots unless you need a rule aimed at one search engine.
- Choose an action. Allow All opens the whole site. Disallow All shuts it. Custom lets you name specific paths.
- List your paths, separated by commas. Things like
/wp-admin/,/cart/,/tmp/. - Paste your sitemap link in full, for example
https://crawlkit.online/sitemap.xml. - Click Create, copy the output, and save it as a file called
robots.txt. Upload that to your root folder, then open Google Search Console and run the robots.txt report. It will flag anything broken before it costs you visitors.
About Us
crawlkit.online is a small collection of free tools for people who look after websites.
We build the kind of thing you need once in a while and should not have to pay for. No account, no email, no free trial that runs out. You open the page, use the tool, and close the tab. That is it.
The robots.txt generator is where we started. Writing that file by hand is easy to get wrong, and one typo in it can quietly cost you search traffic for weeks. Everything runs inside your own browser, so nothing you type reaches us. More tools are on the way. If there is one you keep wishing existed, the contact page is right there.
Contact Us
Found a bug? Got an idea for a tool we should build? Or is something just broken on your phone? Send it over, we read everything that comes in. Fill in the form below and we will get back to you.
Privacy Policy for crawlkit.online
Effective Date: September 7, 2026
This page covers what happens to your information when you use crawlkit.online. It is short, because we do not collect much.
1. Agreeing to this
Using the tools here means you are fine with what is written on this page. If you are not, please stop using the site.
2. What you type stays in your browser
The robots.txt generator runs on your own device. The paths, sitemap links, and settings you enter never leave your browser. We do not receive them, store them, or see them. Close the tab and they are gone for good.
3. Server logs
Like almost every site, our server keeps standard access logs. Those record your IP address, your browser, your internet provider, the time you visited, and the page that sent you here. It is ordinary traffic data. We do not connect it to your name or try to work out who you are.
4. Cookies and advertising
We may use cookies to remember your settings so you are not retyping the same thing every visit. Outside services, Google AdSense among them, may set their own cookies to pick which ads you see. You can block or clear cookies from your browser settings whenever you like. Google also has an ads settings page where you can switch off personalised ads directly.
5. Your rights
If you are in the EU or California, GDPR and CCPA give you the right to ask what we hold about you, have it corrected, or have it deleted. Just ask through the contact page. In practice there is very little to hand over, since the tools never send us your data in the first place.
6. Children
This site is not built for children under 13, and we do not knowingly collect anything from them. If you think a child has sent us something, get in touch and we will remove it.