Building blocks are provided to be aligned so as to build a modular barrier to stop objects that are moving on a ground. Each building block comprises connecting bracket having at least two receiving pockets, at least one of which is laterally directed and at least another is directed in a predetermined angle, and plurality of poles configured to be received within the receiving pockets so that some of the poles are substantially parallel to the ground while the others are configured to be received within the receiving pockets that are directed in the predetermined angle so as to allow the modular barrier to stop the moving objects.