Ignoring doesn't work, in my experience. Some people take that as a challenge to get you to "crack".
Practice becoming friendly with the haters. Notice, I didn't say become friends. You can be friendly with
people and that goes a long way toward dissolving their dislike, especially if they are selfish people, which
these people sound like. You see, the selfish person likes nothing more than to be the center of attention.
So, make them the center of attention. Laugh at their jokes, play along and learn how to be "one of the gang".
Some may call this being "two faced" or fake. People who say things like that have never had to deal with
selfish, mean people. As long as you don't use this tactic to gain an unfair advantage, or steal, or do something
you know is wrong, there is nothing wrong with being friendly to someone you would never choose to be a friend.
Car salesmen do it all the time. Now, I'm not saying you should hold the personality of car salesmen up as an
example of how to work well with others. I'm simply suggesting that people used "forced friendliness" all the time
in society for gain. In your case, you would only be doing it to stop the harassment.
This approach worked for me many times in school. And you know what? Once I moved on in life I never had to even think
about the people that I pretended to like ever again. They were history. Most of them turned out to be big nothings
So, give it a try. Be a friend to a creep, but not really, just be friendly to a creep and see how they respond.
PS - Being friendly should never mean you compromise your morals. Should the friendliness lead to
things you know are wrong, remove yourself from their company.