Use the forbidden units list in the scenario editor. It lets you block specific buildings for a specific player without touching anything else in the scenario.
The player number matters. Each slot in your scenario has its own index, and applying the restriction to the wrong one is the most common mistake, since the effect is invisible until you test the map.
Save and playtest before publishing. Forbidden-unit settings occasionally need a fresh load to take effect properly.