how earth is protected from cosmic rays?
Sun is generating energy by nuclear fusion. And nuclear fusion will emit energy in the form of gamma rays. Normally earth's ozone filtering the Ultraviolet radiation. And magnetic fields of earth deflecting the cosmic rays(charged particles).