Legality of judges orders


#1

I just went through my custody trial, in which my ex was granted primary custody. The judge ordered that a) I can not have a computer plugged in at my house while my son is with me and b) that the person whom I am renting from (who is/was…(long story) my boyfriend) cannot be in the house while my son is there (he owns the house). Is this actually enforcable? How legal is this actually? Can they tell someone who owns the house that they cannot be in it? And my phone is through the internet…am I not supposed to have a phone while my son is here? Any help would be appreciated.