Just apply vcc as forward bias, put the input signal as reverse bias, put a resistor before the input and a smaller one as pull down. Diode won’t conduct if there’s an input signal and the pull down does its job, if there’s no input vcc will just flow throught the diode and overpower the pull down
Guess what a pull down does