Advice Please!

Recently I've been bleeding after sex. My boyfriend hits my cervix quite a bit so I'm wondering if that has anything to do with it. How can I make the bleeding stop? Are there any precautions we can take?