Different countries have different standards, and in all Muslim countries, there are clothing restrictions, exposing your skin is a no-go. Doing the contrary is against the law and punishable too. Here we have the Clothing Guide for different Muslim Countries.
Similar to Eastern Turkey, we recommend that you wear loose fitting clothing, and possibly think about wearing a headscarf.
In the main tourist areas people wear their standard western dress for hot conditions. In more rural areas, again, dressing far more conservatively is advisable (loose fitting clothing, with the optional headscarf)
When visiting Iran, women must wear the hijab (headscarf and modest dress and with their ankles covered), in public at all times. So, either wear loose fitting clothing or wear the full chador.
We advise that all women travellers should wear a headscarf and loose fitting clothing, especially in more rural areas. You can always buy local clothing in any market place. The Salwar Kameez is a local dress style that incorporates a long dress style top, often quite brightly covered with baggy trousers underneath, often matching the pattern and colour of the top. You will find this very comfortable and practical clothing to wear here, especially in the heat of the day.
This is a country where the rules can seem confusing. For lying by the hotel pool, a bikini is perfectly appropriate. But if you Head out for sightseeing or shopping, then cover your shoulders, cleavage and knees, and skip the tight clothing.
No cleavage, No knees and No shoulders. Beyond that, standards seem to fluctuate in Morocco. On the whole, you won't go wrong with long and loose.