---
title: Stop Tunnel
description: "Stop the active Cloudflare tunnel and revoke the public URL. The Mudabbir server remains accessible locally but is no longer reachable from the internet."
api: POST /api/remote/stop
baseUrl: http://localhost:8888
layout: '@/layouts/APIEndpointLayout.astro'
auth: bearer
section: API Reference
ogType: article
keywords: ["stop tunnel", "revoke url", "disable remote access"]
tags: ["api", "tunnel"]
---

## Overview

Stops the currently running Cloudflare tunnel, removing remote access. The public URL becomes unreachable immediately.

## Response

<ResponseField name="active" type="boolean">`false` after stopping</ResponseField>

<RequestExample>
<Tabs items={["cURL", "JavaScript", "Python"]}>
  <Tab title="cURL">
    ```bash
    curl -X POST "http://localhost:8888/api/remote/stop" \
      -H "Authorization: Bearer <token>"
    ```
  </Tab>
  <Tab title="JavaScript">
    ```javascript
    const response = await fetch("http://localhost:8888/api/remote/stop", {
      method: "POST",
      headers: { "Authorization": "Bearer <token>" }
    });
    const data = await response.json();
    console.log(data);
    ```
  </Tab>
  <Tab title="Python">
    ```python
    import requests

    response = requests.post(
        "http://localhost:8888/api/remote/stop",
        headers={"Authorization": "Bearer <token>"}
    )
    print(response.json())
    ```
  </Tab>
</Tabs>
</RequestExample>

<ResponseExample>
<Tabs items={["200"]}>
  <Tab title="200">
    ```json
    {
      "active": false
    }
    ```
  </Tab>
</Tabs>
</ResponseExample>
