An important improvement in polypyrrole film protection efficiency of iron was obtained by doping the polypyrrole film during the synthesis with a surfactant as the dodecylsulfate. These counter-ions have a very weak mobility in the polypyrrole, which thus becomes cationic permselective. The chloride anions penetration in the films is hence strongly reduced.