Sun protecting planets from cosmic radiation