How to make decals be projected on upwards faces

Hi,
I’m trying to place e decal but I would like to be visible only on top of objects and not on the side and bottom.
Is there a way to do it or a possible alternative?

Thanks