跳到主要內容
文件

類別・函式規格

IpFilter

Zittme\Framework\Filters\IpFilter 類別的公開方法清單。本文件由 Zittme 核心原始碼自動產生。

原始碼:common/framework/filters/IpFilter.php

公開方法

  • 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.