RealDocs

UKismetSystemLibrary::LaunchExternalUrl

function Engine Blueprint Since 4.0
#include "Kismet/KismetSystemLibrary.h"
Access: public Specifiers: staticUFUNCTIONBlueprintCallable

Description

Opens an external URL in the platform's default web browser, but only if its domain matches one of the provided allowlist strings.

Caveats & Gotchas

  • If the URL's host doesn't match any entry in InDomainStrings, the call silently does nothing — there's no error or return value to detect a rejected launch.
  • This is the safer alternative to LaunchURL when the URL originates from remote/user-controlled data, since it constrains which domains can be opened.
  • Domain matching semantics (exact vs. subdomain) aren't documented in the header — test with your actual allowlist strings rather than assuming wildcard behavior.

Signature

static void LaunchExternalUrl(const TArray<FString>& InDomainStrings, const FString& URL)

Parameters

Name Type Description Default
InDomainStrings const TArray<FString>& Allowlist of domains the URL's host must match against before it will be launched.
URL const FString& The URL to open if it matches the domain allowlist.

Return Type

void

Example

Open a URL only if it's on an approved domain C++
TArray<FString> AllowedDomains = { TEXT("unrealengine.com"), TEXT("epicgames.com") };
UKismetSystemLibrary::LaunchExternalUrl(AllowedDomains, RemoteProvidedUrl);

Version History

Introduced in: 4.0

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.