NukeViet\Core\Ips::nv_check_proxy PHP Method

nv_check_proxy() public method

ips::nv_chech_proxy()
public nv_check_proxy ( )
    public function nv_check_proxy()
    {
        $proxy = 'No';
        if ($this->client_ip != 'none' || $this->forward_ip != 'none') {
            $proxy = 'Lite';
        }
        $host = @getHostByAddr($this->remote_ip);
        if (stristr($host, 'proxy')) {
            $proxy = 'Mild';
        }
        if ($this->remote_ip == $host) {
            $proxy = 'Strong';
        }
        return $proxy;
    }