Ignorant fools!
The British experiences with pirate suppression are the ‘gold standard’ in that area of naval history.
Only when the shore communities supporting the pirates were attacked and occupied did piracy cease.
Level the Somali ‘cities’ and the issue goes away.
As for the hostages, make it clear that Medina will be nuked if the hostages are attacked by Moslims.
Then make clear that any Moslim attacks will cause the nuking of Medina and Mecca.
Peace through superior firepower.
Back then, there were not much distinction between merchant and navy vessels. Today, a merchant vessel with weapons will probably not be given entry to several ports. Which is why no body has exercised this option.
The only thing Muslims have gotten for terrorist attacks are more weaponry and foreign aid. Look at Saudi Arabia, Yemen and Pakistan.