Collision Detection

Is there a way to make an object collide with other objects only from specific side ? for example I have a tile map with collisions but I want my player to collide with tiles only when player falls at them or stands on them and I want him to “Fly” through platforms when for example player is under a platform and jumps, or when a platform is at player height I want him to be able to just walk freely