Nextcloud PHP API (master)

IRemoteHostValidator

Validator for remote hosts

Tags
since
26.0.0

Table of Contents

Methods

isValid()  : bool
Validate if a host may be connected to

Methods

isValid()

Validate if a host may be connected to

public isValid(string $host) : bool

By default, Nextcloud does not connect to any local servers. That is neither localhost nor any host in the local network.

Admins can overwrite this behavior with the global allow_local_remote_servers settings flag. If the flag is set to true, local hosts will be considered valid.

Parameters
$host : string

hostname of the remote server, IPv4 or IPv6 address

Tags
since
26.0.0
Return values
bool

        
On this page

Search results