An anti-free-flow valve for use with an enteral feeding or infusion pump is disclosed. The valve includes a first component connectable to a first tube and has a first cavity and a sealing element and a second component adapted to be connected to the first component and a second tube and having a second cavity, a valve seat and a flexible portion. The sealing element and the valve seat are sealingly engageable to control fluid flow between the first and second cavities. The valve is configured such that applying an axial tension force between the first and second components brings the valve into an open position. The second components flexible portion includes a bellows which has a spring function in the axial direction and a housing at least partially covering the second component and configured to operate as a stop limiting the axial movement of the second component.