An admitted online "troll" was sentenced Monday to the maximum prison term under federal guidelines more than three years — for illegally gaining access to AT&T’s servers and stealing more than 100,000 email addresses of iPad users.

Dozens of Andrew Auernheimer’s supporters packed the hearing, and clapped when he made a statement castigating the government for what he characterized as an unfair prosecution. The proceeding turned tense at one point when Auernheimer apparently pulled out a cellphone and several U.S. marshals grabbed it from him and held him spread-eagle on the defense table. After a short recess, he was led back into the courtroom in shackles.