Check out this tutorial on how to avoid sandwich attacks:

https://x.com/yerasylamanbek/status/1902022923902124532