No, actually, the ritual won't work if there are counter-magics in place. Not only the Forbiddance spell, but it is in the spirit of the rules that other rituals/powers/conditions, invented by the DM, splatbooks he uses, etc. exist that can thwart this power.
But your example is completely...