Solar events like flares are easier to shield against, while galactic cosmic rays are more penetrating and challenging to shield.
Active shields that deflect charged particles are a potential solution for protecting astronauts from deep space radiation.