
How much Google Ads costs: spend, management fees and a realistic budget
How much Google Ads costs: what you pay Google, what an agency charges to manage it and what budget you need for it to pay off.
The robots.txt is a plain text file placed in the root of a website that tells search engine crawlers (such as Googlebot) which pages or sections they may or may not crawl.
It is part of the Robots Exclusion Protocol, a standard that search engines follow voluntarily. It is important to understand that it is a recommendation, not a binding order and not a security measure.
Always in the root of the domain: https://yourdomain.com/robots.txt
You can view any site’s robots.txt by adding /robots.txt to its domain. Try it on well-known sites to see real examples.
robots.txt uses a simple syntax based on directives. Each directive takes one line:
Specifies which crawler the instructions are aimed at:
User-agent: * → All crawlersUser-agent: Googlebot → Google’s bot onlyUser-agent: Bingbot → Bing’s bot onlySpecifies which paths should NOT be crawled:
Disallow: /admin/ → Blocks the admin folderDisallow: /privado.html → Blocks one specific pageDisallow: / → Blocks the WHOLE siteDisallow: (empty) → Blocks nothingAllows crawling of a path inside a blocked one:
Disallow: /carpeta/Allow: /carpeta/publico.html → Allows only that pageGives the location of the XML sitemap:
Sitemap: https://yourdomain.com/sitemap.xml
Here are some practical robots.txt setups for different needs:
User-agent: *
Allow: /
Sitemap: https://yourdomain.com/sitemap.xml
User-agent: *
Disallow: /admin/
Disallow: /wp-admin/
Sitemap: https://yourdomain.com/sitemap.xml
User-agent: *
Disallow: /*?*
Disallow: /search/
Sitemap: https://yourdomain.com/sitemap.xml
User-agent: *
Disallow: /wp-admin/
Allow: /wp-admin/admin-ajax.php
Disallow: /wp-includes/
Disallow: /trackback/
Disallow: /feed/
Disallow: /*?s=
Disallow: /*?p=
Sitemap: https://yourdomain.com/sitemap_index.xml
User-agent: *
Disallow: /
Careful! This stops Google crawling any page at all. Only use it temporarily.
Creating a robots.txt is simple. All you need is a text editor:
Open Notepad, TextEdit or any plain text editor. Do not use Word or any rich text editor.
Start with the basic setup:
User-agent: *
Allow: /
Sitemap: https://yourdomain.com/sitemap.xml
Then add whatever Disallow directives your case needs.
Save it exactly as robots.txt (all lowercase, with no extra extension).
Upload the file to the root of your domain via FTP or your hosting file manager. It must be reachable at: yourdomain.com/robots.txt
Open yourdomain.com/robots.txt in your browser to confirm it works.
If you use WordPress, you have several ways to manage robots.txt:
WordPress generates a virtual robots.txt by default. SEO plugins usually create a physical one, which takes priority. If something is not working, check there is no conflict between the two.
Under Settings → Reading, ticking “Discourage search engines from indexing this site” makes WordPress add a Disallow that blocks the entire site. Make sure it is unticked in production.
It is essential to understand that robots.txt controls crawling, not indexing:
If you block a URL in robots.txt, Google will not crawl it. But if external links point to it, Google may index it with no content, showing something like “No information is available for this page” in the results.
If you want a page NOT to appear in Google, use the meta noindex tag:
<meta name="robots" content="noindex">
Y do not block it in robots.txt, because then Google will not be able to read the noindex tag.
robots.txt is a basic but fundamental part of technical SEO. A wrong setup can block important content and seriously hurt your rankings, while a good one helps Google crawl your site efficiently.
At JRC Web we review and optimise every technical aspect of your website, including robots.txt, sitemaps, canonicals and URL structure. As an SEO agency in Barcelona, we make sure your site is properly configured for search engines.
A full SEO audit covers all of these technical elements to find and fix the problems that may be holding your rankings back.
Not sure about the technical setup of your website? Get in touch and we will review your case with no commitment.
Google provides tools to check that your robots.txt works properly:
In Search Console, the Pages report shows you whether any URLs are blocked by robots.txt. If you see important pages in that category, review your setup.
These mistakes can seriously damage your SEO:
Disallow: / blocks absolutely everything. Sometimes this line is left over from a development environment and pushed to production by mistake. Always check before uploading.
Google needs access to CSS and JS to render pages properly. Blocking them affects how Google interprets your content and can hurt your rankings.
As we saw, blocking in robots.txt does not prevent indexing. If external links exist, Google can index the URL and show an empty result.
The file is public. Anyone can read it and see what you are “hiding”. It is not a security measure.
Adding the sitemap reference to robots.txt helps search engines find it. It is good practice and costs nothing.
The idea of a crawl budget is especially relevant for large sites:
It is the number of pages Google is willing to crawl on your site in a given period. It depends on how important your site is and on how much your server can handle.
For small sites (under 1,000 pages), crawl budget is rarely a problem.
Every search engine bot has its own name (user-agent). The most important ones are:
You can give different instructions to each bot:
User-agent: Googlebot
Disallow: /privado/
User-agent: Bingbot
Disallow: /privado/
Disallow: /otro/
Click to rate this post!
How useful did you find this content?
Click a star to rate it!
Average rating!0/ 5. Vote count0
No votes yet! Be the first to rate this post.

How much Google Ads costs: what you pay Google, what an agency charges to manage it and what budget you need for it to pay off.

Web design for freelancers in Barcelona: which pages you need, what it costs and how to get a professional, affordable website that wins clients.

What AI search optimisation (GEO) is and how to get ChatGPT, Gemini and Perplexity to recommend your company in Barcelona.

