If you go to a hospital for a persistent nose bleed they will give you a small amount of cocaine to stop the bleeding.

I think this is because cocaine contricts blood vessels and prevents the flow of blood.

It is probably possible to use this method at home should you have a small amount of cocaine on hand, but be forewarned it may lead to a nose bleed addiction.