I Need Help How Would You Handle This Situation?

He denied the baby was his when I first told him now I'm towards the end of my pregnancy an he decides he wants to be daddy an I have everyone in my ear telling me if I keep him away I'm doing more harm to my daughter then to him but it hurt to have woken up 6 am to take a pregnancy test to get the results an wait for him to wake up an tell him an to have him push me aside an say it wasn't his. How is keeping my daughter from someone who didn't want to love her from the start doing her harm or am I just to into my feelings about the situation?