Handling life's disappointments and pain can be difficult. It is natural to respond by feeling hurt and upset. The reason why that occurs is because you are a feeling person. Anyone who is in touch with their feelings will experience the sting of pain when they are made fun of or hurt in another way. By reacting with pain, your feelings are telling you that what you are hearing or seeing is wrong and that you should either get out of the situation or seek more help with it. For example, if your spouse cheats on you, the pain you feel tells you that something is wrong emotionally with your spouse and that you need to respond in a way that protects you.
The only way to almost completely block out someone hurting you is to put up an emotional defense so you can block some of the pain from others. This would involve telling yourself that either you are angry at everyone or just don't care what anyone does. The people that do seem to brush off hurts and pain from others developed their defenses in response to being hurt so many times they had little choice but to put a shell around themselves. But by doing this, they live without being able to be vulnerable with anyone because they can't trust anyone. So they trade being aware of their feelings and in touch with others for being behind a wall.
A better way to deal with those that hurt you is to be more in touch with your feelings. Acknowledging that you are hurt and taking care of yourself as a result makes you a better person and more healthy emotionally. You can do this by finding ways to express your feelings when you do feel hurt and by surrounding yourself with support so you have others to turn to when you feel bad. It is ok to cry or feel angry when you are hurt. These are healthy responses. Talk to others who do support you. It goes a long way to help you heal if you have someone who is there for you.
Also, work on ways to improve your self esteem. Often when you struggle with self esteem, any comment by someone else can feel like a knife going through you. It serves to confirm what you thought of yourself before- that something is wrong with you. But by improving your self esteem, you can see others for who they are when they try to hurt you. Therefore you will have the strength to leave the situation and block them out because what they say and do will not ring true with you. Instead it will show you how damaged they are as people to be able to hurt you in the first place.
I hope this has helped you,