T
ToolPrime

robots.txt for Magento

E-commerce robots.txt template for Magento stores. Handles layered navigation, checkout, and admin pages.

robots.txt

User-agent: *
Disallow: /admin/
Disallow: /checkout/
Disallow: /customer/
Disallow: /catalogsearch/
Disallow: /wishlist/
Disallow: /sendfriend/
Disallow: /review/product/list/
Disallow: /*?*SID=
Disallow: /*?*___store=
Disallow: /*?*___from_store=
Disallow: /*?*dir=*
Disallow: /*?*order=*
Disallow: /*?*limit=*
Disallow: /*?*mode=*
Disallow: /*?*p=*
Allow: /media/
Allow: /static/

Sitemap: https://example.com/sitemap.xml

Line-by-Line Explanation

User-agent: * — applies to all crawlers

Disallow: /admin/ — blocks the Magento admin panel

Disallow: /checkout/, /customer/ — blocks checkout and account pages

Disallow: /catalogsearch/ — prevents search result pages from being indexed

Disallow: /wishlist/, /sendfriend/ — blocks user action pages

Disallow: /review/product/list/ — blocks review listing pages

Disallow: session and store parameters — prevents duplicate URLs with query strings

Disallow: sorting and pagination parameters — prevents crawling of filtered/sorted duplicates

Allow: /media/ and /static/ — ensures images, CSS, and JS are accessible

Sitemap — points to the Magento-generated sitemap

Best Practices for Magento / Adobe Commerce

Build a custom robots.txt for your Magento / Adobe Commerce site

Open robots.txt Generator

Frequently Asked Questions

Can I manage robots.txt from the Magento admin?▾
Yes. In Magento 2, go to Stores > Configuration > General > Design > Search Engine Robots. You can edit the robots.txt content directly from the admin panel.
Why block so many query parameters in Magento?▾
Magento generates thousands of URL variations through layered navigation (sorting, filtering, pagination). Each combination creates a near-duplicate page that wastes crawl budget.
Should I block product review pages?▾
Block /review/product/list/ (the review listing) but keep individual product pages accessible. Review content on product pages adds valuable unique content for SEO.

Related Templates