How shall i stop getting hurt?

How do i stop people opinions affect me? I wanna be that person that whatever people say it doesnt upset me.