The invention refers to a needle safety device (4) for a drug delivery device (1) comprising a needle cap remover (8) adapted to capture a needle cap (6) by a positive and/or non-positive connection, wherein the needle cap remover (8) comprises a top end (8.3), a needle shield (7) adapted to cover a needle (5) of the drug delivery device (2) before and after injection, wherein the needle shield (7) comprises a needle shield end (7.4) adapted to engage an injection site, and at least one blocking pin (9) which inwardly extends from the top end (8.3) and/or the needle shield end (7.4) into the needle cap remover (8) and/or into the needle shield (7).