Skip to content
Docs

Class and function reference

IpFilter

List of public methods of the Zittme\Framework\Filters\IpFilter class. This document was automatically generated from the Zittme core source.

Source: common/framework/filters/IpFilter.php

Public methods

  • static function inRange(string $ip, string $range)
  • Check whether the given IP address belongs to a range.
  • static function inRanges(string $ip, array $ranges)
  • Check whether the given IP address belongs to a set of ranges.
  • static function validateRange(string $range)
  • Check whether a range definition is valid.
  • static function validateRanges(array $ranges)
  • Check whether a set of range definitions is valid.
  • static function getCloudFlareRealIP()
  • Get real IP from CloudFlare headers.