Generate a robots.txt file to control search engine crawling.
User-agent: * Disallow: /
Place in Your Website Root
Save this file as robots.txt in your website's root directory (e.g., public/robots.txt for Next.js). Test with Google Search Console after deploying.
Prevent crawlers from wasting crawl budget on admin, login, API, or duplicate pages. Direct them to your most important content instead.
Search engines have a crawl budget for each site. By blocking non-essential pages, crawlers spend more time on your content pages.
Block access to draft pages, staging areas, internal search results, and other content not meant for the public.
Including your sitemap URL in robots.txt helps search engines discover all your important pages quickly and efficiently.
Block /wp-admin/, /wp-includes/, and /?s= to prevent crawling admin and search query pages.
Block /api/ and /_next/static/ while allowing all page routes.
Block cart, checkout, account, and search pages while allowing product and category pages.
Allow content pages and sitemap, block admin panels and tag/search archives.
Allow docs and sitemap, block internal API endpoints and testing routes.
Use separate user-agent rules for different language subdirectories if needed.
Block all crawlers from staging.example.com to prevent indexing of test content.
Block /media/, /uploads/ raw directories while allowing image pages and articles.
Generate SEO-optimized meta tags for your web pages instantly.
Create Open Graph meta tags for better social media sharing.
Generate structured data markup (JSON-LD) for rich search results.
Analyze keyword frequency and density in your content.

Founder & Developer of FreeKit
I personally designed and built every tool on this website — including the one you just used. If these tools have been helpful, I can build custom tools, automation workflows, websites, and SEO solutions tailored to your business.
Remote: Available Now
United States & European company
USD $25/hour or USD $1,500/month
On-site: Open to Relocation
With work visa & travel support