IntermediateTechnical SEOFree prompt

Robots.txt Optimization and Crawl Control

Configure robots.txt to efficiently guide search engine crawlers while avoiding common mistakes that block important content.

Optimize robots.txt to prevent wasteful crawling of low-value pages while ensuring all important content remains accessible to search engines.

robots.txtcrawl controltechnical SEOGooglebotcrawl optimization

At a glance

Access

Free prompt

Open to copy — no account or payment needed.

Prompt objective

Optimize robots.txt to prevent wasteful crawling of low-value pages while ensuring all important content remains accessible to search engines.

Real use case

A site's robots.txt accidentally blocks CSS and JS files, causing Google to see an unstyled page. Another rule blocks the entire /blog/ directory, preventing new articles from being indexed.

Customize these fields first

WEBSITE URLDOMAIN

Replace the placeholders with your own context before you run the prompt. That usually improves the first output more than adding more instructions later.

Prompt

Audit and optimize the robots.txt file for [WEBSITE URL].

**Phase 1 — Current robots.txt Audit:**
- Download and analyze current robots.txt
- Test with Google's robots.txt Tester
- Identify:
  - Overly broad Disallow rules
  - Blocked resources (CSS, JS, images)
  - Missing Sitemap directive
  - Conflicting rules
  - Rules affecting important content

**Phase 2 — Crawl Waste Analysis:**
- Identify URLs being crawled that shouldn't be:
  - Admin pages (/wp-admin/, /admin/)
  - Search result pages (/search?, /?s=)
  - Filter and sort parameters
  - Session IDs and tracking parameters
  - Staging and development URLs
  - API endpoints
  - Feed URLs (if not needed)

**Phase 3 — Optimized robots.txt:**

**Recommended structure:**
```
User-agent: *
# Block admin and utility
Disallow: /wp-admin/
Disallow: /admin/
# Allow CSS, JS, images
Allow: /wp-content/uploads/
Allow: /wp-includes/
# Block search and parameters
Disallow: /?s=
Disallow: /search/
# Sitemap
Sitemap: https://[DOMAIN]/sitemap_index.xml
```

**Phase 4 — Testing and Validation:**
- Test each rule with robots.txt Tester
- Verify no important content is blocked
- Check rendering with blocked resources
- Monitor crawl stats post-change

**Phase 5 — Common Mistakes to Avoid:**
- Blocking CSS/JS files
- Using robots.txt for noindex (use meta robots instead)
- Overly broad wildcards
- Forgetting to update after site changes
- Not testing before deploying

Include a robots.txt audit checklist and a testing protocol.

Open directly in an AI — the text is pre-filled:

How to use this prompt

  1. 1Replace the key placeholders first: WEBSITE URL, DOMAIN.
  2. 2Replace any bracketed placeholders like [this] with your own context.
  3. 3Add extra background information when you want more tailored results.
  4. 4Combine multiple prompts in one conversation when you need a richer output.
  5. 5Save your best-performing prompts so they are easy to reuse later.

Next best step

Open the guide first, then branch only if you still need more.

A practical guide for marketers who want campaigns, prompts, and automations that shorten execution time.

If this prompt is close but not quite right, generate variants next. If the job is recurring, move into the course library after the guide.

Related prompts

View all

AI Search Visibility Audit for Course Pages

Reviews whether a course, guide, or landing page is clear enough for search engines and AI assistants to cite.

IntermediateFree prompt

Best for

Improve page clarity, citation readiness, and conversion paths for AI search, organic search, and human buyers.

ai searchGEOtechnical SEO
Copy-ready promptOpen prompt

Core Web Vitals audit and performance optimization roadmap

Diagnoses Core Web Vitals issues (LCP, INP, CLS) and creates a prioritized technical remediation plan.

IntermediateFree prompt

Best for

Improve the site's Core Web Vitals metrics to meet Google's 'good' thresholds, ensuring performance is not a limiting factor for ranking.

Core Web VitalsLCPINP
Copy-ready promptOpen prompt

Crawl budget optimization and crawl architecture for large sites

Maximizes Googlebot crawl efficiency by prioritizing important pages and blocking crawl budget waste.

AdvancedFree prompt

Best for

Ensure Googlebot spends its crawl budget on the most important site pages, accelerating indexing of new content and avoiding unnecessary crawling of low-value pages.

crawl budgetGooglebotindexing
Copy-ready promptOpen prompt

Complete Schema Markup implementation for rich results

Plans and implements structured data (Schema.org) to win rich results and increase CTR in search results.

BeginnerFree prompt

Best for

Implement Schema markup on all relevant site pages to enable rich results in Google (stars, FAQ, breadcrumbs, products, how-to), increasing visibility and organic CTR.

Schema markupstructured datarich results
Copy-ready promptOpen prompt

Explore other prompt categories

Move sideways into adjacent libraries when the current category is not the full answer.

Every prompt here is free. The course teaches the thinking behind them.

Copy as many prompts as you like. When you want to move from single prompts to a repeatable AI workflow, Learn AI in 30 Days walks through it, one day at a time.

Get the courseSee the 30-day curriculum first

Buy the course once ($15/$20 by length), or go all-access for $10/mo with a verifiable certificate.