ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client functions
  3. isBrowserDomainBlocked

Function

isBrowserDomainBlocked

ClientBrowserIdentical to MTA:SA

Checks whether a domain (or address) is unavailable to web browsers: because of the blacklist, missing player consent or disabled remote pages.

Syntax

bool isBrowserDomainBlocked(string address [, bool isURL = false])

Arguments

addressstring
A domain or address.
isURLbool, optional = false
true when you pass a full address instead of a domain.

Returns

true if the domain is blocked.

Example

if isBrowserDomainBlocked("youtube.com") then
    requestBrowserDomains({ "youtube.com" })
end

See also