how to shield arduino uno from external mag fields?

Diodes are needed it that kind of circuit to use it safe