Preventing Leakage and Contamination

Is there a technological solution for drinking water finding where the leakage will occur and for contamination control for each house holds and other tap water users?