New format
Robots.txt for Joomla: rules and a careful template
`robots.txt` lives at the site root (`https://example.com/robots.txt`) and tells crawlers which paths to skip. On Joomla you usually block `/administrator/`, core system folders, and noisy URL parameters.
Below: what the directives mean and sensible Joomla starting points. Do not paste a “perfect” Joomla 3.x list onto Joomla 4/5 — paths, SEF, and components differ. The file does not replace noindex, and it will not put a query core on page one in a week.
Why robots.txt on Joomla
Joomla exposes many system URLs: admin, components, print parameters, votes, language tails. Without rules, bots burn crawl budget on junk and sometimes pull duplicates into results.
The file does not “rank” the site by itself. It cuts noise. A bad Disallow can hide sections you need — so after edits, check webmaster tools.
Usually blocked:
- admin `/administrator/`
- core system directories
- tech parameters (print, mailto, vote, and similar)
- obvious duplicates like `index2.php` — case by case
Main directives
`User-agent: *` sets rules for all bots; use separate blocks for Yandex or Googlebot when you need them. `Disallow` blocks a path from crawl; `Allow` carves out exceptions. `Sitemap:` points to the XML sitemap.
`Crawl-delay` was once used on weak hosting; support and meaning differ by bot — do not treat it as mandatory. `Clean-param` (Yandex) helps with noisy GET parameters when they really spawn duplicates.
What to remember
| Directive | Meaning |
|---|---|
| User-agent | Who the rule block is for |
| Disallow / Allow | Block or allow crawling paths |
| Sitemap | XML sitemap URL |
| Crawl-delay | Pause between requests (not always useful) |
| Clean-param | Ignore query “noise” (Yandex) |
Path landmarks for Joomla
A common starting set: block `/administrator/`, `/cache/`, `/cli/` (if present), `/includes/`, `/language/`, `/libraries/`, `/logs/`, `/tmp/`, and typical tech parameters (`print`, `mailto`, votes). Match the exact list to your Joomla version and SEF setup.
Aggressive rules like “everything with `?`” or all of `/media/` help on some sites and break needed URLs on others. Prefer iterations: close system junk → check coverage in the panels → refine.
Minimum before you ship:
- admin is closed from crawl
- sitemap is listed in `Sitemap:`
- important sections are not blocked by accident
- the main mirror is set with HTTPS/www redirects
- the file is served as `text/plain` from the root
Sample frame (not dogma)
Below is a teaching skeleton — not “copy and forget.” Put your own sitemap domain and adapt the lines to your Joomla version and real duplicates.
Line ideas:
- `User-agent: *`
- `Disallow: /administrator/`
- `Disallow: /cache/`
- `Disallow: /tmp/`
- `Disallow: /*format=`
- `Disallow: /*print=`
- `Sitemap: https://example.com/sitemap.xml`
Checks after publishing
Open `/robots.txt` in a private window. Validate syntax in Yandex Webmaster and Google Search Console reports. Confirm important landings are not under Disallow.
If a page must stay out of the index but still has inbound links, add noindex — do not rely on robots.txt alone.
Takeaways
On Joomla, `robots.txt` is crawl hygiene for system paths and parameters — not a ranking lever. Adapt any template to your CMS version and verify it in webmaster panels.
General deindexing principles and Disallow vs noindex live in a separate guide; WordPress-oriented templates are covered in the related robots.txt article.
FAQ
Does Disallow mean “don’t index”?
No. Disallow asks bots not to crawl a URL. To keep a page out of the index, meta robots or X-Robots-Tag noindex is more reliable (and still checkable). See the deindexing article.
Where does the file live on Joomla?
In the web-server root next to `index.php`, not under `/administrator/`. After edits, open `/robots.txt` in the browser and in Webmaster Tools / Search Console.
Do you still need Host?
Host once pointed Yandex at a preferred host. Today what matters is correct 301s, HTTPS, and the preferred host in the panels. Do not rely only on a Host line from a 2018 template.
Should you block /media/ and /templates/?
It depends. Those folders sometimes hold assets used in snippets. Test; a blind ban “as in the article” can hurt.
Will a robots.txt template improve rankings?
Not directly. It is crawl hygiene. Growing a competitive query core is separate work — typically planned over 2–6 months after the technical base is sound.
Copying a Joomla 3.3 robots.txt wall onto Joomla 5 — and closing real landings?
We’ll adapt Disallow to your version, keep Sitemap on HTTPS, and verify in webmaster panels before it hurts crawl.
Discuss the task