I don't know if you need to restrict, but you can do so by blending it by some other node, like a distance shader (attach to camera), a distribution shader, or a painted shader (paint areas, but pause preview window if you do, or it'll crash), or simple shape shader (adjust edges for soft shapes), etc.