This study presents an innovative physical isolation measure for commercial scenarios, namely, hanging curtains, to prevent the spread of respiratory infections. Using computational fluid dynamics simulation techniques, the closed spaces within cruise cabins were modeled and numerically analyzed, focusing on the dispersion characteristics of droplets. Additionally, orthogonal methods were employed to investigate various arrangements of hanging curtains and their effects on droplet dispersion based on spatial positioning. The research findings indicated that hanging curtains can effectively alter the airflow within a space, realizing the innovative concept of localized pollutant containment. It was found that the spatial partitioning method based on the location of individuals contributes more to reducing droplet dispersion than other methods. Moreover, the sag height of curtains emerges as the most influential factor on individual infection risk, while the scheme for hanging curtain positions has the least impact. Finally, the optimal configuration recommendation is provided: a curtain bottom coordinate of Z = 2.3 m and a top coordinate of Z = 2.8 m when the infection source was positioned at the center of the space. This configuration has also been validated by varying the location of the infection source. The research findings provide valuable insights for formulating preventive measures for passengers on cruise ships and for pandemic control in similar scenarios.