Masking Units
Masking goes a step further than disabling: it links the unit file to /dev/null, preventing the service from being started at all — even manually, even as a dependency of another unit.
# Prevent a service from being started by any means
sudo systemctl mask telnet.socket
# Reverse it
sudo systemctl unmask telnet.socket
Note — When to Mask — Masking is the right tool when you need to guarantee a service can never start by accident — for example, blocking a legacy or insecure service entirely, even if another package tries to pull it in as a dependency.