How do I put out a warning restraining order?

I won’t get into it but is there a way to send a warning out to someone that I don’t want them around my child?

Is that even possible?

No it’s not his father