The official and safest way to get UE4 is through the Epic Games Launcher:

the engine on a machine with internet access via the Epic Games Launcher.

Unreal Engine 4 (UE4) is one of the most powerful and popular game development platforms in the world, used to create titles like Fortnite , Street Fighter V , Hellblade , and Octopath Traveler . While Epic Games has moved on to Unreal Engine 5, many developers still prefer UE4 for its stability, extensive documentation, and specific project requirements.