The blockade applies to any ship that visits Iranian ports, regardless of country of ownership or flag
That only applies to Iranian ports on the Persian (Arabian) Gulf, NOT the Gulf of Oman or the Arabian Sea to the east of the Strait of Hormuz. Tankers can apparently only get Iranian oil from the Persian Gulf.