Faraz Siyal - Web Developer & Designer
Back to All Free Tools
Technical SEO Utility100% Free to Use

Free robots.txt Generator for SEO

Build a clean, Google-friendly robots.txt file with instant presets for WordPress, Shopify, Next.js, and Wix — then copy or download the file in one click.

WordPress, Shopify, Next.js & Wix PresetsIncludes Sitemap Directive1-Click Download

Configure Your robots.txt Rules

Choose a platform preset or customize paths below

SEO Safe
1. Quick Platform Presets
/wp-admin//wp-includes//?s=
Live Generated File

robots.txt Output

# robots.txt generated from farazsiyal.com
User-agent: *
Allow: /wp-admin/admin-ajax.php
Disallow: /wp-admin/
Disallow: /wp-includes/
Disallow: /?s=

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

How to install: Upload robots.txt to the root directory of your website (e.g. public_html/robots.txt on Hostinger/cPanel) so it is accessible at https://yourdomain.com/robots.txt.

robots.txt FAQs

Frequently Asked Questions

What is a robots.txt file and where should I upload it?

A robots.txt file tells search engine crawlers (like Googlebot and Bingbot) which folders or pages they should or shouldn't crawl. Upload it to your website's root folder so it opens at https://yourdomain.com/robots.txt.

Should I include my XML Sitemap URL inside robots.txt?

Yes! Adding 'Sitemap: https://yourdomain.com/sitemap.xml' at the bottom of your robots.txt file helps every search engine discover your XML sitemap automatically.

Which paths should be disallowed on a WordPress site?

On WordPress, disallowing /wp-admin/ (while allowing /wp-admin/admin-ajax.php) and internal search query pages (/?s=) saves crawl budget without blocking Google from rendering your CSS or JS files.

Does blocking a page in robots.txt guarantee it won't appear in Google?

robots.txt controls crawling, not indexing. If you want to guarantee a page never appears in Google search results, add a <meta name='robots' content='noindex'> tag to that page's HTML.

WhatsApp