Some countries enforce specific dress codes through law or official regulations, particularly related to modesty, and visitors are expected to comply to avoid fines, penalties, or denial of access to certain places; for example, nations such as Saudi Arabia and Iran require modest clothing in public, including covering arms, legs, and in some cases hair for women, while countries like the UAE and Qatar enforce modest dress standards in public areas and especially at religious or government sites, meaning travelers should research and respect local dress requirements before visiting to ensure they remain culturally respectful and legally compliant.