TEHRAN, Iran — For a brief moment, Iran’s female soccer fans thought they were finally allowed to attend a match, but their hopes were dashed on Monday when authorities said their tickets were sold by mistake.

Women have been barred from attending soccer matches, and some other sporting events such as wrestling, since the 1979 Islamic Revolution, with officials saying they must be protected from the vulgar atmosphere.

But when seats for Tuesday’s qualifying match against Syria at Tehran’s Azadi stadium went on sale on Saturday, many were shocked to see an option for women’s tickets on the website.

Get The Times of Israel's Daily Edition by email and never miss our top stories Free Sign Up

Some shared their surprise and joy on Twitter with a Farsi hashtag meaning “I_have_ticket.”

“I was extremely excited… it was unbelievable,” soccer fan Arefeh Elyasi told the reformist Shahrvand newspaper on Monday.

Another woman, Zahra Jafarzadeh, said she bought a ticket even though she does not really like soccer.

“I felt that if didn’t sign up, I would be missing a major event,” she told the newspaper.

Having never been inside the stadium, some worried about which seat to choose.

“My friend’s mother told me to get a seat where the ball wouldn’t hit my head,” said Negin Bagheri.

But it did not take long for reality to reimpose itself, as Iran’s soccer federation said it was all a mistake.

“There is no plan to allow the presence of women in Azadi stadium for the Iran-Syria match,” it said in a statement, blaming a “technical glitch.”

Tickets bought by women would all be canceled and refunded, it said.

“Maybe we all knew that we would not be allowed to enter the stadium despite buying the ticket,” Elyasi said. “But we wanted to make our voice heard by the officials.”

Iran was among the first teams to qualify for the 2018 world cup finals in Russia, and celebrations are planned for after the Syria game.

Women are allowed to watch some sports, though the rules can change with little warning.

There was shock in 2014 when women were suddenly banned from volleyball matches without explanation, although they have since been allowed to return to some events in segregated seats.