How to block one pawn but ignore another?

Thank you james0x, great response.