blockAllConnections static method

void blockAllConnections()

Block all network connections to prevent MITM attacks This is a security measure that can be used when suspicious proxy activity is detected

Implementation

static void blockAllConnections() {
  NetworkBlocker.enableNetworkBlocking();
}