Lines Matching full:is
18 * Determine whether an IP address is within a given CIDR range.
33 * @return bool Returns true if $needle is within the range specified
34 * by $haystack, false if it is outside the range.
36 * @throws Exception Thrown if $needle is not a valid IP address.
37 * @throws Exception Thrown if $haystack is not a valid IP range.
84 * @throws Exception Thrown if the IP is not valid.
110 * Determine if an IP address is equal to another IP or within an IP range.
136 * Given the IP address of a proxy server, determine whether it is
139 * This test is performed using the config value `trustedproxies`.
143 * @return bool Returns true if the IP is trusted as a proxy.
149 // If the configuration is empty then no proxies are trusted.
171 * If the header is not present or contains an untrusted proxy then
172 * an empty array is returned.
174 * The client IP is the first entry in the returned list, followed by the
190 // This is the address from which the header was received.
197 // The client address is the first item, remove it from the list.
201 // header has passed. The final proxy is the connection's remote address.
205 // Ensure that every proxy is trusted.
219 * The IP is sourced from, in order of preference:
221 * - The X-Real-IP header if $conf[realip] is true.
227 * is being added by the web server, otherwise it may be spoofed by the client.
244 * - The X-Real-IP header if $conf[realip] is true.
259 // Use the X-Real-IP header if it is enabled by the configuration.
287 * The host name is sourced from, in order of preference:
314 * Is the connection using the HTTPS protocol?
317 * the HTTPS environment is used.