---
title: "Protect Server"
method: POST
path: "/servers/{id}/protection"
---

# Protect Server

`POST /servers/{id}/protection`

## Request

- Base URL: `https://app.bitlaunch.io/api`
- URL: `https://app.bitlaunch.io/api/servers/{id}/protection`
- Auth: API key in header `Authorization`

Change whether a server has DDoS protection.

## Path parameters

- `id` string, required

## Request body

- object
  - `enable` boolean, required: Set `true` to enable protection. Set `false` to disable protection.
  - `region` string, required: The DDoS prevention server to use (`"bvm-lux"` is currently only one available). When disabling set region to `""`.

## Response `200`

200

## Other responses

- `400`: 400

## Changes

- **2026-11-03** `89cafcc1ee63`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/bitlaunch/apis/bitlaunch-api/changes/servers/:id/protection/post.md)

---

[API](https://skmtc.dev/bitlaunch/apis/bitlaunch-api.md) - [All operations](https://skmtc.dev/bitlaunch/apis/bitlaunch-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bitlaunch/apis/bitlaunch-api/revisions/89cafcc1ee63?raw)
