Caves
If you're taking shelter in caves, make sure there's no water inside, don't sit on the wet floor, and keep a distance of at least 1 meter from the walls and the cave entrance, and 3 meters above your head.
Rocks
You can take shelter under a tall rock—but don't sit any closer than a meter away. It's important not to touch the rock. But don't stray too far from it either.
A rock must be 5 to 10 times taller than a person; only then will it provide shelter.
Forest
Find the lowest spot in the forest.
The most important thing is to stay away from isolated trees. Don't press yourself against them or lean on them.
Choose some trees—or better yet, some bushes—that are all the same height, and stand between them.
Water
The enemy during a thunderstorm, in any form. Avoid vertical cracks in rocks, moss, lichens, bodies of water and puddles, and low-lying areas where water can pool.
Insulate yourself from the ground inside the shelter: Sit on your backpack or a sleeping pad; if you don't have one, place large rocks underneath you, and put smaller rocks under those—you need to create a barrier against the water.