What you want is a restraining order and you need to get it from the court. Go to civil court if it is not a relation, family court if it is anyone you have ever lived with. of course if there is an emergency dial 911, and when the police come they will issue a temporary protective order which is good for a short period of time to alow you to get to court.