Flap valves are fitted to the end of a pipe allowing water to flow out but preventing anything from flowing back in.