Xray-docs-next/docs/en/config/outbounds/blackhole.md

949 B

Blackhole

Blackhole is an outbound data protocol that blocks all outbound data. When used in conjunction with routing configurations, it can be used to block access to certain websites.

OutboundConfigurationObject

{
  "response": {
    "type": "none"
  }
}

response: ResponseObject

Configures the response data for the blackhole.

After receiving the data to be forwarded, the blackhole will send the specified response data and then close the connection. The data to be forwarded will be discarded. If this field is not specified, the blackhole will simply close the connection.

ResponseObject

{
  "type": "none"
}

type: "http" | "none"

When type is set to "none" (default value), the blackhole will simply close the connection.

When type is set to "http", the blackhole will send a simple HTTP 403 packet as the response and then close the connection.