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
Returns false if the URL is able to be loaded, true if it is blocked and nil if an invalid domain/URL was passed.
- bool: result
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
- getBrowserTitle
- getBrowserURL
- injectBrowserMouseDown
- injectBrowserMouseMove
- injectBrowserMouseUp
- injectBrowserMouseWheel
- isBrowserDomainBlocked
- isBrowserFocused
- isBrowserGPUEnabled
- isBrowserLoading
- isBrowserRenderingPaused
- loadBrowserURL
- navigateBrowserBack
- navigateBrowserForward
- reloadBrowserPage
- requestBrowserDomains
- resizeBrowser
- setBrowserAjaxHandler
- setBrowserProperty
- setBrowserRenderingPaused
- setBrowserVolume
- toggleBrowserDevTools