blockIp method

void blockIp(
  1. String ip
)

Blocks an IP address Adds the given ip to the blocked list, so that any incoming request from this IP address will be blocked.

If the IP address is already in the blocked list, this method does nothing.

Implementation

//
/// Adds the given [ip] to the blocked list, so that any incoming request
/// from this IP address will be blocked.
///
/// If the IP address is already in the blocked list, this method does
/// nothing.
void blockIp(String ip) {
  blockedIps.add(ip);
}