If Linux receives a packet say on Eth1 interface and it needs to be routed. By seeing the routing table it decides that the packet should be sent out ETH1 again(incoming interface). Can this be prevented without changing the routing entries?

Basically can Linux check on which interface packet has come from and drop the packets if it needs to be forwarded back again same interface?