In the United Kingdom, contributions made to the Internet are covered by the Communications Act 2003. Sending messages which are “grossly offensive or of an indecent, obscene or menacing character” is an offense whether they are received by the intended recipient or not.
Source: Troll (Internet) @ Wikipedia
Image by JNL (Own work) [FAL], via Wikimedia Commons