Getting a shot is the best way to prevent yellow fever if you’re going to where it’s found. To keep mosquitoes away, use bug spray, wear clothes that cover you, and sleep in places with screens or AC.