The effect of resistivity gradient on laser-driven electron transport and ion acceleration is investigated using collisional particle-in-cell simulation. The study is motivated by recent proton acceleration experiments [Gizzi et al., Phys. Rev. ST Accel. Beams 14, 011301 (2011)], which showed significant effect of the resistivity gradient in layered targets on the proton angular spread. This effect is reproduced in the present simulations. It is found that resistivity-gradient generation of magnetic fields and inhibition of electron transport is significantly enhanced when the feedback interaction between the magnetic field and the fast-electron current is included. Filamentation of the laser-generated hot electron jets inside the target, considered as the origin of the nonuniform proton patterns observed in the experiments, is clearly suppressed by the resistive magnetic field. As a result, the electrostatic sheath field at the target back surface acquires a relatively smooth profile, which contributes to the superior quality of the proton beams accelerated off layered targets in the experiments. V C 2013 AIP Publishing LLC. [http://dx.