Snake plants can survive direct sunlight if you keep a careful eye on them. If they show signs of getting too much light, move them to a shady spot.
If you do not want to be concerned about the placement of your snake plant, place it in a shady spot indoors or outdoors. A snake plant can live and survive in direct sunlight in some cases.
Natural light is the best light for snake plants, but some tolerate direct sunlight without problems.