V2Fly.orgV2Fly.org
Quick Start
Config Reference
Config Reference (v5, WIP)
Tools
Developer Guide
New concise guide
  • 简体中文
  • English
GitHub
Quick Start
Config Reference
Config Reference (v5, WIP)
Tools
Developer Guide
New concise guide
  • 简体中文
  • English
GitHub
  • Config Reference

    • Configuration File Format
    • Environment variables
    • DNS Server
    • Routing
    • Policy
    • Inbounds
    • Outbounds
    • Transport
    • Remote control API
    • Stats
    • Reverse Proxy
    • Multiple config
    • "Fake" DNS server
    • Browserforwarder
    • Observatory
  • Protocols

    • Blackhole
      • OutboundConfigurationObject
        • ResponseObject
    • DNS
    • Dokodemo-door
    • Freedom
    • HTTP
    • Socks
    • VMess
    • Shadowsocks
    • Trojan
    • VLESS
    • Loopback
    • Hysteria2
  • Transport

    • TCP
    • mKCP
    • WebSocket
    • HTTP/2
    • QUIC
    • DomainSocket
    • gRPC
    • Hysteria2
  • Service

    • Stats
    • Policy
    • Browser Forwarder
    • Burst Observatory
    • Background Observatory
    • Tun
    • Subscription Manager

Blackhole

  • Name: blackhole
  • Type: Outbound Protocol

Blackhole (black hole) is an outbound data protocol, which will hinder the outbound of all data. When used with Routing, it can achieve the effect of prohibiting access to certain websites.

OutboundConfigurationObject

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

response: ResponseObject

Configure the response data of the black hole. Blackhole will send the specified response data after receiving the data to be forwarded, and then close the connection. The data to be forwarded will be discarded. If this item is not specified, Blackhole will close the connection directly.

ResponseObject

{
    "type": "none"
}

type: "http" | "none"

When type is "none" (default value), Blackhole will close the connection directly. When type is "http", Blackhole will send back a simple HTTP 403 packet and then close the connection.

Edit this page on GitHub
Last Updated:
Contributors: transifex-integration[bot]
Next
DNS