- Documentation
- Client functions
- isBrowserDomainBlocked
Function
isBrowserDomainBlocked
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 = falsetruewhen 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