Fast-electron beam stopping mechanisms in media ranging from solid to warm dense matter have been investigated experimentally and numerically. Laser-driven fast electrons have been transported through solid Al targets and shock-compressed Al and plastic foam targets. Their propagation has been diagnosed via rear-side optical self-emission and Kα X-rays from tracer layers. Comparison between measurements and simulations shows that the transition from collision-dominated to resistive field-dominated energy loss occurs for a fast-electron current density ~5 × 1011 A cm−2. The respective increases in the stopping power with target density and resistivity have been detected in each regime. Self-guided propagation over 200μm has been observed in radially compressed targets due to ~1kT magnetic fields generated by resistivity gradients at the converging shock front.