Blood after pooping while pregnant

Never has this ever happened to me but I am 6 months pregnant and was going number 2 and it did hurt but I noticed after I was done that there was blood every where I'm not saying a little I'm saying a fear share amount to where I freaked out and I never get scared. It didn't come from my vagina I checked. Has this happened to anybody