> ## Documentation Index
> Fetch the complete documentation index at: https://api-docs.kinsta.com/llms.txt
> Use this file to discover all available pages before exploring further.

# WordPress Bot Protection

[Bot protection](https://kinsta.com/docs/wordpress-hosting/mykinsta-tools/wordpress-tools-bot-protection/) lets you control how different types of traffic are blocked or challenged on your site. With the `bot-protection` endpoints, you can:

* **[Protection level](https://kinsta.com/docs/wordpress-hosting/mykinsta-tools/wordpress-tools-bot-protection/#change-the-bot-protection-level):** Retrieve the current level with `GET`, or set a new level with `PUT`.
* **[AI crawlers](https://kinsta.com/docs/wordpress-hosting/mykinsta-tools/wordpress-tools-bot-protection/#block-ai-crawlers):** Check whether AI crawlers are blocked with `GET`, or block or unblock them with `PUT`.
* **[WordPress automations](https://kinsta.com/docs/wordpress-hosting/mykinsta-tools/wordpress-tools-bot-protection/#allow-typical-wordpress-automations):** Check the **Allow typical WordPress automations** setting with `GET`, or allow or block automations with `PUT`.
* **[Exception rules](https://kinsta.com/docs/wordpress-hosting/mykinsta-tools/wordpress-tools-bot-protection/#exceptions):** List rules with `GET`, add a rule with `POST`, or remove a rule with `DELETE`.

You can obtain the `environment_id` using the `GET` request with the [WordPress Site Environments](https://api-docs.kinsta.com/api-reference/wordpress-site-environments/get-site-environments.md) endpoint.

The `environment_id` is also shown after the `site_id` in the URL in MyKinsta when you access the environment, for example in the URL `https://my.kinsta.com/sites/details/fbab4927-e354-4044-b226-29ac0fbd20ca/c84ce214-69b9-4a32-8e67-880672cf1d38?idCompany=bdd25d71-5706-4890-870f-1adda17c505d`**:**

* The `site_id` is `fbab4927-e354-4044-b226-29ac0fbd20ca`
* The `environment_id` is `c84ce214-69b9-4a32-8e67-880672cf1d38`
* The `company_id` is `bdd25d71-5706-4890-870f-1adda17c505d`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.