> For the complete documentation index, see [llms.txt](https://clients.medianova.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://clients.medianova.com/products/performance-cdn/static-content-delivery/advanced-configuration/caching/robots.txt-file.md). Agents can also search and read this documentation through its [MCP server](https://clients.medianova.com/~gitbook/mcp).

# Robots.txt File

Configure how Medianova CDN handles requests for the robots.txt file used to communicate crawling instructions to search engine crawlers.

**Robots.txt File** determines whether the CDN serves a default `robots.txt` file, retrieves the file from the origin server, or disables delivery of the file.

You can configure Robots.txt File through the [Medianova Control Panel](https://cloud.medianova.com) or the [API](https://clients.medianova.com/api-documentation/performance-cdn/caching#put-api-v1-cdn-organization_uuid-resource-resource_uuid-7).

{% hint style="warning" %}
The selected mode can affect how search engines crawl your website. Verify the resulting `robots.txt` response before applying changes to production traffic.

A `robots.txt` file provides crawling instructions but does not guarantee that URLs will be excluded from search engine indexes.
{% endhint %}

## Robots.txt Modes

Robots.txt File supports three modes:

<table><thead><tr><th width="166.5">Mode</th><th>Behavior</th></tr></thead><tbody><tr><td><strong>Disabled</strong></td><td>Disables delivery of the <code>robots.txt</code> file through this feature.</td></tr><tr><td><strong>Enabled</strong></td><td>Serves the default <code>robots.txt</code> file provided by Medianova CDN.</td></tr><tr><td><strong>Origin</strong></td><td>Retrieves and serves the <code>robots.txt</code> file from the configured origin server.</td></tr></tbody></table>

## Configuration Steps

{% stepper %}
{% step %}

### Open Robots.txt File

Open your CDN Resource in the Medianova Control Panel and select **Caching**.

<figure><img src="https://542970813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtK7oIwmhUHdEJcaH4Hx8%2Fuploads%2FW5lre25tCZZFt8o7wp7A%2Fimage.png?alt=media&#x26;token=6ebd2e79-1866-4962-86bd-f16baabfc421" alt="Robots.txt File configuration in the Medianova Control Panel"><figcaption><p>Robots.txt File configuration.</p></figcaption></figure>
{% endstep %}

{% step %}

### Select the Mode

Under **Robots.txt File**, select one of the following:

* **Disabled** – Disable delivery of the `robots.txt` file through this feature.
* **Enabled** – Serve the default Medianova `robots.txt` file.
* **Origin** – Retrieve the `robots.txt` file from the origin server.

To use custom crawler directives, select **Origin** and ensure that the required `robots.txt` file is available on your origin server.
{% endstep %}

{% step %}

### Save the Configuration

Select **Save** in the pending changes bar.

Review the pending changes and confirm the update to apply the configuration to the CDN Resource.
{% endstep %}
{% endstepper %}

## Robots.txt Behavior

### Disabled

When **Disabled** is selected, the CDN does not serve a `robots.txt` file through this feature.

### Enabled

When **Enabled** is selected, the CDN serves the default `robots.txt` file provided by Medianova.

Custom `robots.txt` content cannot be uploaded through the Medianova Control Panel.

### Origin

When **Origin** is selected, the CDN retrieves the `robots.txt` file from the configured origin server.

This mode allows you to maintain custom crawler directives at the origin.

If the origin does not provide a `robots.txt` file, the request returns **404 Not Found**.

## Important Notes

* Use **Origin** when your website requires custom crawler directives.
* The `robots.txt` file must be accessible at the `/robots.txt` path for the relevant hostname.
* Robots.txt directives are advisory and depend on crawler compliance. They do not provide access control or prevent unauthorized requests.
* Robots.txt File settings determine how the file is served. They do not directly configure CDN cache expiration or cache key behavior.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://clients.medianova.com/products/performance-cdn/static-content-delivery/advanced-configuration/caching/robots.txt-file.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
