Baby father, protection order, moved states

Im 5 months pregnant. First child.

I have a protection order against the father. We are not married.

He recently moved 500 miles away.

When he does try to go to court to get his rights/custody, what does this mean if hes 500 miles away?

Once he gets any rights do i have to pay or something for him to see the child? Im super confused.

I dont even want him around and hes abusive hints the protective order.

Any one know?