What waves can protect you from uv rays?

Ozone layer can protect you. It is present in the stratosphere.