A valve for a shock absorber, wherein the valve comprises a housing at least partly insertable into a first chamber of the shock absorber, wherein the housing is provided with a portion forming a piston holder configured to extend along a central longitudinal axis of the first chamber, wherein a piston is provided on the piston holder and configured to separate the inner volume of the first chamber into a second chamber and a third chamber, wherein the piston comprises a primary fluid channel for fluidly connecting the second and third chambers to allow for a primary fluid flow between the second and third chambers, wherein the piston holder comprises a secondary fluid channel for fluidly connecting the second and third chambers to provide for a secondary fluid flow between the second and third chambers through the secondary fluid channel, characterised in that the valve further comprises a spool movable between an open position in which the spool allows secondary fluid flow through the secondary fluid channel and a restricting position in which the spool at least partly restricts secondary fluid flow through the secondary fluid channel, wherein the valve further comprises an electrically controlled actuator configured to move the spool between its open and restricting positions, wherein the spool is guided in a corresponding portion of the secondary fluid channel of the piston holder for movement back and forth between the open and the closed positions, wherein the piston holder is provided with one or more radial ports providing fluid inlets into the secondary fluid channel from the second chamber, and wherein the spool is configured to throttle the secondary fluid flow at the fluid inlets of the piston holder by gradually blocking the fluid inlets of the secondary fluid channel with an outer surface of the spool upon movement of the spool from the open position towards the restricting position, and gradually unblocking the fluid inlets of the secondary fluid channel upon movement of the spool from the restricting position towards the open position. wherein the valve comprises a housing at least partly insertable into a first chamber of the shock absorber, wherein the housing is provided with a portion forming a piston holder configured to extend along a central longitudinal axis of the first chamber, wherein a piston is provided on the piston holder and configured to separate the inner volume of the first chamber into a second chamber and a third chamber, wherein the piston comprises a primary fluid channel for fluidly connecting the second and third chambers to allow for a primary fluid flow between the second and third chambers, wherein the piston holder comprises a secondary fluid channel for fluidly connecting the second and third chambers to provide for a secondary fluid flow between the second and third chambers through the secondary fluid channel, characterised in that the valve further comprises a spool movable between an open position in which the spool allows secondary fluid flow through the secondary fluid channel and a restricting position in which the spool at least partly restricts secondary fluid flow through the secondary fluid channel, wherein the valve further comprises an electrically controlled actuator configured to move the spool between its open and restricting positions, wherein the spool is guided in a corresponding portion of the secondary fluid channel of the piston holder for movement back and forth between the open and the closed positions, wherein the piston holder is provided with one or more radial ports providing fluid inlets into the secondary fluid channel from the second chamber, and wherein the spool is configured to throttle the secondary fluid flow at the fluid inlets of the piston holder by gradually blocking the fluid inlets of the secondary fluid channel with an outer surface of the spool upon movement of the spool from the open position towards the restricting position, and gradually unblocking the fluid inlets of the secondary fluid channel upon movement of the spool from the restricting position towards the open position.