Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. IpUtils.php

function IpUtils::isPrivateIp

Checks if an IPv4 or IPv6 address is contained in the list of private IP subnets.

File

vendor/symfony/http-foundation/IpUtils.php, line 235

Class

IpUtils
Http utility functions.

Namespace

Symfony\Component\HttpFoundation

Code

public static function isPrivateIp(string $requestIp) : bool {
    return self::checkIp($requestIp, self::PRIVATE_SUBNETS);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal