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!")endSee Also
Browser Functions
- canBrowserNavigateBack
- canBrowserNavigateForward
- createBrowser
- executeBrowserJavascript
- focusBrowser
- getBrowserProperty
- getBrowserSettings
- getBrowserSource
- getBrowserURL
- getBrowserTitle
- injectBrowserMouseDown
- injectBrowserMouseUp
- injectBrowserMouseMove
- injectBrowserMouseWheel
- isBrowserDomainBlocked
- isBrowserFocused
- isBrowserGPUEnabled
- isBrowserLoading
- isBrowserRenderingPaused
- navigateBrowserBack
- loadBrowserURL
- reloadBrowserPage
- navigateBrowserForward
- requestBrowserDomains
- resizeBrowser
- setBrowserAjaxHandler
- setBrowserRenderingPaused
- setBrowserVolume
- toggleBrowserDevTools
- setBrowserProperty
 
 