That will work. Israel supplies water and electricity to Gaza. Additionally, they allow Gaza people to work in Israel, and allow transport of food and goods into Gaza.
Blockade Gaza. Turn off the electricity, stop water flows into Gaza, and stop the shipment of food and other supplies into Gaza. Stop the employment of Gaza people in Israel. And finally, block the sea ports. Until Hamas surrenders and gives up the Israeli hostages. If Hamas refuses, it's on them.
Turkey has just announced they are preparing humanitarian aid for Gaza.