Skip to main content
Server Actions

Block search engines on a stack server

Asynchronous Request

Runs the Block Search Engines script on a LAMP/LEMP stack server. Manages robots.txt rules in the server webroot (strict default or custom).

POST
/servers/{serverSlug}/actions/block-search-engines
Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

serverSlugstringrequired

Slug of the server

Body

application/json

Optional custom robots.txt content.

robotsTxtstring

Optional custom robots.txt content. Leave empty or omit to use the strict default.

Example: User-agent: *\nDisallow: /staging\nAllow: /

Block search engines initiated.

X-Callback-IDstringheader

CallbackID