It's illegal to stalk someone online. There are two parties involved in cyberstalking: first, the attacker, also known as the stalker, who commits the crime, and second, the victim who is the target of the stalker's harassment. As a form of online crime, cyberstalking is also known.