So if I set up a tribe and its neutral or good aligned, and I know gates are coming, can the gate be set so that "evil" characters can't use that gate???

Can I section off a part of the tribal area where only certain people have access? Set like a pass phrase you have to enter for the gate to open? or have to be set a certain rank in the tribe to able to go past that gate?