Disconnect the brake hose from the union on the strut. Plug the end of the rigid pipe.
When the damper inside a MacPherson strut wears out, you can buy a replacement cartridge which —...