LAFAYETTE, WALKER COUNTY (WRCB)-- The Walker County Sheriff's Office has charged a Lafayette High School freshman, accused of hacking the school's website. 

Sheriff Steve Wilson tells Channel 3, the 15-year-old is accused of posting pornography and altering the principal's profile information.

The Sheriff says the charge stems from two separate incidents on August 31st and September 1st, when the Lafayette High School and Walker County Board of Education websites were hacked.

He says the alleged hacking prevented the school system from accessing the internet for several days, resulting in costly repairs.

"Computer hacking is a crime that the Walker County Sheriff's Office takes seriously," Sheriff Wilson says. "This crime cost the Board of Education thousands of dollars to repair and correct their IT system." 

The student has been suspended from school and charged with Computer Trespassing, a felony.

The freshman will appear in Walker County Juvenile Court.