I'm going to make them leave the house
Who do you want to leave the house?
those kind of bastards who just show up at other people's house without any invitation or other excuse
You should be able to choose who to have over and when.   Make sure that you are communicating this clearly and asking people to leave politely, so that you do not lose any friendships.
WTF, I'm not doing this to be polite. I'm joking, but I'm curious what happened to you when someone came over without an invitation.
It is understandable that you want people to give you notice before they just show up to your home. It's okay to respectfully let them know that it's not a good time for company.