Violations would be punishable by up to three years in prison. Missouri lawmakers approved a similar measure last week.
'Cyberbullying' ban awaits Blagojevich's approval
The bill outlaws the use of the internet to harass someone. It also forbids the posting of threatening comments on Web sites or online message boards. The legislation is in response to the case of a 13-year-old Missouri girl who hanged herself in 2006 after receiving cruel messages via Myspace.