Gregius Optimizer – Robots

Overview

Gregius Optimizer provides two layers of crawl control:

  1. Robots.txt — Access policies that govern which crawlers (search engines, AI answer engines, AI trainers) can reach which parts of your site.
  2. Robots meta tag — Per-page indexing directives (noindex, noarchive) dispatched by page type and configurable via a sidebar toggle.
Robots control plane panel in the Block Editor

The default robots.txt grants access to major search engines and AI answer services (ChatGPT, Perplexity, Claude) and blocks AI model trainers and administrative paths (wp-admin, except admin-ajax.php). These defaults establish a crawl posture that balances discoverability with a secure administrative surface.


Technical Prerequisites & Blocks

  • Gregius Optimizer plugin installed and activated
  • Settings → Reading → “Discourage search engines from indexing this site” must remain unchecked. When enabled, WordPress ignores custom robots.txt directives.

Edit your robots.txt

  1. Open any post or page in the Block Editor.
  2. Locate the Robots panel in the right sidebar.
  3. Click Settings to open the editor modal.
  4. Review your current directives in the text area. The site’s robots.txt URL appears as a clickable link at the top of the modal.
  5. Edit the directives. The text area auto-expands as you add lines.
  6. Click Update to save.

Example — Restrict AI crawlers

Block AI model trainers while preserving access for search engines and AI answer services:

User-agent: GPTBot
Disallow: /

User-agent: Google-Extended
Disallow: /

User-agent: Applebot-Extended
Disallow: /

User-agent: Cohere-ai
Disallow: /

Reset to defaults

  1. Open the Robots modal.
  2. Click Reset to defaults.
  3. The button is disabled when no custom override exists — a grayed-out control confirms default directives are active.

Resetting restores the original composition — the built-in directives that allow all major crawlers.


How robots meta works

Every page receives a <meta name="robots"> tag automatically. The directive is dispatched by page type:

Page typeDirective
Standard pages and postsindex, follow
Search resultsnoindex, follow
404 pagesnoindex, follow
Posts hidden from search (via the Sitemap panel)noindex, follow

How to noindex a specific post

  1. Open the post in the Block Editor.
  2. In the Sitemap panel, toggle Hide page from search engines to on.
  3. Update or publish the post.

The post receives a noindex, follow directive and is stripped from the XML sitemap.


Permissions

ActionRequired capability
View robots.txt settingsmanage_options
Update robots.txt contentmanage_options
Hide a post from search enginesedit_post (on that post)

Global robots.txt configuration requires manage_options — administrators and super admins. Content editors with edit_post can noindex their own posts.


Next Steps

Gregius Optimizer is fully open-source, transparent, and built for modern development workflows.

Available on WordPress.org: Install the plugin directly from the official in the WordPress Plugin Directory.

View on GitHub: You can review, fork, and inspect the entire codebase and core logic over at the repository on GitHub.

Documentation: Read the setup guides and technical documentation below to get started.

  • Sitemap – Control which content appears in your XML sitemap
  • Robots.txt – Configure crawl directives for search engines and AI bots
  • Schema – Add structured data markup to help search engines understand your content
  • Social Card – Control how your content appears when shared on social media and in search results.
  • LLMs – Optimize your site for AI agents and large language models with an /llms.txt file