NEWARK, N.J. (AP) — A New Jersey judge has ruled that a former airport security guard accused of threatening to shoot President Barack Obama can’t get his gun collection back.

The judge says his ruling might have been different if the October incident had happened before the Sept. 11 terrorist attacks.

An attorney for John Brek says he will appeal Thursday’s ruling.

Brek served 30 days in jail after pleading guilty to harassment. He was initially charged with making terroristic threats.

The charges arose from comments Brek made at Newark Liberty Airport one day before Obama arrived.

Prosecutors initially said Brek talked about cutting holes in a fence to make it easier to shoot Obama. Further interviews revealed Brek said someone could see through holes in the fence to shoot the president.

Copyright 2010 The Associated Press.