Judge Howard Riddle said the effect of Twitter abuse on feminist campaigner Caroline Criado-Perez had been "life-changing".
The victim describes "panic and fear and horror," he said.
The judge added that online abuse aimed at Stella Creasy had also had a "substantial" impact on the Labour MP, who has had a panic button installed in her home.
The fact that they were anonymous heightened the fear.
The victims had no way of knowing how dangerous the people making the threats were, whether they had just come out of prison, or how to recognise and avoid them if they came across them in public.
More top news
Donald Trump has wasted no time making his mark on international matters as well as domestic. So how will his presidency affect the world?
Another cold, frosty and foggy night for many. Northern and western areas will see thickening cloud, patchy rain and milder temperatures.
Temperatures have already plunged to -12C in some parts of the UK this winter - but Thursday could be the coldest day yet.