Skip to content

What is Robots Txt?

If you have your own website, are a digital marketing professional, or are just someone trying to learn a little bit more about how to create visibility online, then you may be trying to better understand the world of SEO. It’s likely that if you’re in the initial stages, you’ve already learned about some fundamentals…
Reading Time: 2 minutes

If you have your own website, are a digital marketing professional, or are just someone trying to learn a little bit more about how to create visibility online, then you may be trying to better understand the world of SEO. It’s likely that if you’re in the initial stages, you’ve already learned about some fundamentals such as keyword research and optimising your site for the web. In addition to this, you may also have covered the topic of search engines and how they index your content.  In the process, perhaps you’ve recently come across the phrase ‘robots.txt’ and are wondering what exactly it is. On that note, this article is going to highlight what robots.txt is all about.

[siteorigin_widget class=”SiteOrigin_Widget_Image_Widget”][/siteorigin_widget]

What is Robots txt?

For those who aren’t already aware, robots txt is a text file that you can put on your website to tell search robots the pages that you don’t want them to visit during their web crawl. Generally, search engines obey what you tell them not to do, so it is almost like putting a ‘do not enter’ sign on those specific pages. You should note, however, that robots.txt doesn’t prevent search engines from crawling your site, so if you have information that you really don’t want anyone seeing, it’s best to keep it offline and on a separate machine.

Why Do You Need it?

You may be wondering why you wouldn’t want search robots visiting some of your pages since it helps improve your ranking in search engines. However, there are a few valid reasons why you wouldn’t want them to. Some of them would probably include:

  • To avoid duplicate content penalties if you have two versions of a page (e., one for print and one for browser viewing).
  • If you have sensitive data you don’t want everyone seeing.
  • Wanting to save bandwidth by omitting images, stylesheets, and javascript from indexing.

Where Does it Go?

As well as learning about robot.txt, you’re probably here because you want to know how to use it for your personal site as well. Firstly, you should know that robot.txt should always go in the main directory. If you make the mistake of putting them somewhere else, search engines won’t be able to find it and will end up indexing your entire site which is exactly what you’re trying to avoid. If you want to know how to write robots txt, then there are many support pages, such as Google, that will allow you to write or edit any robots text file for your site.

Things to Avoid

When adding a robots.txt file to your site, it is important that you do so carefully, as they often have traps. One thing in particular to avoid is allowing different search engines access to different directories as this can create problems. Below you will find some specific mistakes to try and avoid when it comes to robot.txt.

  • Contradicting directives.
  • Misspelled user agents.
  • Missing colons after user-agent and disallow.

It is worth noting that there are tools available to help with typos as trying to find them manually can be quite tricky, such as the Robots.txt Validator tool.

Robots.txt is a great way to prevent all of your pages from becoming visible on the web. This may give you peace of mind knowing that on the internet, you still have access to a level of privacy. However, as mentioned above, if you have extremely sensitive information, keeping it off the web entirely may be a better alternative.

Simon Brisk, Co-Founder and Commercial Director
View all Downloads

Downloads

The cover of an e-book titled 'Digital Marketing for International Audiences' with a blue global map and interconnected lines.

Digital Marketing for International Audiences

Digital marketing is a requirement for any business that wants to entice, engage, and excite customers online. When putting together…

Download
The cover image of our e-book titled 'Content Marketing How-To Guide', portraying an individual typing on a laptop.

Content Marketing – How-to Guide

What is Content Marketing? Download Our How-To Guide Today!

Download
A blue section and the text "eCommerce SEO Handbook." The image shows a person using a laptop to shop online.

eCommerce SEO Handbook

The essential eCommerce SEO Handbook, download your free copy today!

Download
View the Blog

You may also be interested in...

The December 2025 Google Core Update Is Complete: What Does It All Mean?

When a Google core update is being rolled out, digital marketers everywhere eagerly wait to…

Why Digital PR Campaigns Are Your Brand’s Loudest Megaphone

Digital PR for SEO is one of the most powerful link-building strategies for any brand. It generates not just links, but the right links, and serves as a supercharged authority-building engine that helps you ramp up your backlink profile. If you want to get your brand out there, whether that’s at the top of a search, mentioned by an AI chatbot, or referenced in an AI Overview, then PR for ranking SEO is an excellent strategy to invest in.

What Are the Best SEO Strategies to Invest in 2026?

Search has undergone a massive shift in the last few years, changing not only how…

How Agencies Boost Search Results with Local SEO

Local SEO has always been one of the most powerful and effective tools for local…

Why LLM Rank Tracking is Essential for SEO in 2026

LLM rank tracking is one of the most essential strategies for AI SEO in 2026…

2026 SEO Agency Toolkit: Services, Trends & Growth Hacks

If you want your agency to be ahead in 2026, you need to stay sharp,…

Brand Mentions & AI Search: Why They’re a Big Deal Right Now

These days, it's not only backlinks that get your brand noticed. AI-powered search is growing…

Click Intelligence SEO Team’s 2026 Industry Predictions

As we come to the end of another year in digital marketing, one thing is…

View all Guides

Online Guides

Which Is Best Brightedge vs Semrush in 2026?
View guide
Which Is Best: Raven Tools vs SEMrush in 2026?
View guide
Which Is Best: SE Ranking vs SEMrush in 2026?
View guide
Which is Best Similarweb vs SEMrush in 2026?
View guide
Which is Best SEO Powersuite vs SEMrush in 2026?
View guide
Which is Best SEMrush Vs Ahrefs Vs Moz in 2026?
View guide
Which is Best Ahrefs Vs Spyfu in 2026?
View guide
Which Is Best Ahrefs Vs Raven in 2026?
View guide
Back To Top