If house you rent is being foreclosed can you put rent money in bank instead of giving to landlord?

DO NOT give money to the LL befiore you speak to the bank.

You may have to make payments directly to the bank.

If that is your obligation, and, if you mistakenly give the money to the LL instead then you may end up owingthe money to the bank who won't bother chasing after the LL for you. It will be your problem to come up with the money.