Make one way platforms

Hi, I am making a game with moving platforms that should only use collision if the feet touch the top but I can’t seem to find a good way of doing it.

I often have platforms that move very close or even overlap each other so my current solution stops working once they get too close.

I am probably missing something super obvious but I would love some help figuring this out since I can’t seem to find a good solution anywhere online. thx in advance.