To stop a water pipe from leaking, follow these steps:
Shut off the main water supply to prevent further leakage.
Drain any remaining water from the pipe.
Clean the area around the leak with a cloth or brush.
Apply a pipe repair clamp or a rubber patch over the leak, following the manufacturer's instructions.
Tighten the clamp or secure the patch to create a watertight seal.
Turn the main water supply back on and check for any signs of continued leakage.
If the leak persists or if it's a major issue, it's recommended to contact a professional plumber for assistance.