THE chairman of a mosque in Malaysia has temporarily banned tourists from visiting, and it’s all thanks to a couple of midriff-baring foreigners.

Over the weekend, footage of two young women dancing in front of Masjid Bandaraya mosque in the Malaysian state of Sabah — while wearing shorts and belly-baring tops — went viral on social media.

The short video clip soon caused a stir in the local Muslim community, prompting the chairman of the mosque, located in the city of Kota Kinabalu, to respond, Fox News reported.

“We opened our doors to visitors because we want to introduce and let the people know the beauty of Islam, but such action has tarnished the image of our religion,” said mosque chairman Jamal Sakaran, reported Malaysia’s The Star.

Mr Sakaran further claimed all visitors to the mosque were offered more modest traditional dresses, headscarves and hats, but “there were still some who do not show respect”.

On Sunday, Mr Sakaran temporarily cancelled all tour buses and car services that would bring tourists directly to the popular holy site.

The lone exception would be visitors using car services registered with the mosque’s management.

At the moment, the women seen in the video are unidentified, but believed to be foreigners.

A minister for Sabah’s tourism department said “strong action will be taken” against the women and the operator of their tour group if identified.

However, another minister quoted by The Straits Times said legal action will not be pursued, as the pair had likely not realised the severity of their actions.

Onlookers at the time of the incident likely did, however, with one can be heard saying in the footage: “Why don’t they just fall off the wall?”

The mosque is currently said to be looking into hiring additional security in response to the women’s actions, according to a Borneo Post article shared by the tourism board.

The temporary tourist ban at Kota Kinabalu’s mosque comes just over three years after four tourists, from the Netherlands, England and Canada, were fined and sentenced to three days in jail for posing nude atop Mount Kinabalu.