Fear of being hurt

I got out of a relationship about a month ago due to him leading me on for a month and being unhappy but not telling me. So he broke up with me. I’m scared to start liking someone again. But I’m already starting to.. I don’t want to feel that hurt again and I’m aware that it’s not every guys intention to hurt me but it’s still a fear of mine. Any advice?