We had in the past a very bad bursting of a toilet pipe, which damaged significantly everything below (entire basement).

We saw on the TV "Ask This Old House" a device which would stop the...