The straight is narrow enough that they could use artillery to hit the ships in it.
And for US and/or Israel to prevent it, they would have to occupy the correspondingly wide strip of Iranian coast. At which point we're talking about a massive ground invasion (and of course then the same artillery would be firing at those troops, so you can't really just stop there either).
Or, you know, counter-battery systems and hundreds of patrolling drones.
During Desert Storm, US batteries returned fire before enemy rounds even hit apogee.