core/web/Composition.php
public function isHostAllowed($allowedHosts)
    {
        $currentHost = $this->request->hostName;
        
        $rules = (array) $allowedHosts;
        
        foreach ($rules as $allowedHost) {
            if (StringHelper::matchWildcard($allowedHost, $currentHost)) {
                return true;
            }
        }
        
        return false;
    }
public function isHostAllowed($allowedHosts)
    {
        $currentHost = $this->request->hostName;
        
        $rules = (array) $allowedHosts;
        
        foreach ($rules as $allowedHost) {
            if (StringHelper::matchWildcard($allowedHost, $currentHost)) {
                return true;
            }
        }
        
        return false;
    }
public function isHostAllowed ( $ allowedHosts ) { $ currentHost = $ this -> request -> hostName ; $ rules = ( array ) $ allowedHosts ; foreach ( $ rules as $ allowedHost ) { if ( StringHelper :: matchWildcard ( $ allowedHost , $ currentHost ) ) { return true ; } } return false ; }
Checks if the current request name against the allowedHosts list.

@return boolean Whether the current hostName is allowed or not.
@since 1.0.5
Checks if the current request name against the allowedHosts list .