isBrowserDomainBlocked
Client-side
Server-side
Shared
This function checks if the specified URL is blocked from being loaded.
OOP Syntax Help! I don't understand this!
- Method: Browser.isDomainBlocked(...)
Syntax
bool isBrowserDomainBlocked ( string address, [ bool isURL = false ] )
Required Arguments
- address: A website URL.
Optional Arguments
NOTE: When using optional arguments, you might need to supply all arguments before the one you wish to use.
- isURL (default: false): true if address should be parsed as URL, false otherwise.
Returns
- bool: result
Returns false if the URL is able to be loaded, true if it is blocked and nil if an invalid domain/URL was passed.
Code Examples
client
--Check the state of wiki.mtasa.comif ( isBrowserDomainBlocked ( "wiki.mtasa.com" ) ) then --If it is blocked. outputChatBox("wiki.mtasa.com is blocked and can't be loaded right now!")else --If it is not blocked. (Was accepted by the user) outputChatBox("wiki.mtasa.com is not blocked and ready to be loaded!")end
See Also
Browser Functions
- canBrowserNavigateBack
- canBrowserNavigateForward
- createBrowser
- focusBrowser
- executeBrowserJavascript
- getBrowserProperty
- getBrowserSettings
- getBrowserSource
- getBrowserTitle
- getBrowserURL
- injectBrowserMouseDown
- injectBrowserMouseMove
- injectBrowserMouseUp
- injectBrowserMouseWheel
- isBrowserDomainBlocked
- isBrowserFocused
- isBrowserGPUEnabled
- isBrowserLoading
- isBrowserRenderingPaused
- loadBrowserURL
- navigateBrowserForward
- navigateBrowserBack
- reloadBrowserPage
- requestBrowserDomains
- resizeBrowser
- setBrowserAjaxHandler
- setBrowserProperty
- setBrowserRenderingPaused
- setBrowserVolume
- toggleBrowserDevTools