Websites like Twitter and Facebook will be legally obliged to provide victims with the identity of people who post abusive and defamatory messages about them online.

Major reforms of the libel laws will also see internet service providers given greater protection from being sued if they help to identify so-called internet trolls.