Duplicator Block

Is their any way to block spawning of certain entites while using the duplicator?

FPP uses a similar system, but I can’t understand how they do it!