Judge rules man must tell the police every time he wants to