Removed the tutorial prefix, since this isn't a tutorial. But I'd also like to see a solution, since I noticed this vulnerability the other day. Good thing I rarely play multiplayer, and only do so with friends.
i made a lockdown switch with turrets that activate when triggered, just do that and they will target people outside your party or if there in pvp mode. wihich is most likely considering they will have to get through you first.