Protective devices for injection needles or infusion needles that include a needle holder at a proximal end of the needle, on whose shaft a protective element for the needle tip can be positioned and moved, are herein disclosed. The protective element is configured to block the needle tip following an injection to prevent accidental contact therewith. The protective element may be positioned on the shaft in a ready to use position inside a grip part or middle retaining portion, which is also used to activate the protective element over the needle following the injection.