Iranians have realized that joining foreign bookmakers that accept them is one way to change the tide in their favor. There are numerous sports betting sites in Asia specially designed for Iranians. Local gamblers who use foreign sportsbooks do not face any legal penalties.
The government has, however, blocked a few unscrupulous foreign betting sites from accessing the market. It's important to note that some of them conduct business without a permit from a reputable agency and are in violation of the law. They are deemed to be dodgy, offering bettors zero security.
The important thing is choosing a platform wisely to avoid common scams.
Until 1979, gambling in Iran was a significant component of the local culture. In that year, the Islamic Revolution overthrew the Shah's government which was positive about sports betting. Upon overthrowing Shah's government, Ayatollah Khomeini took over.
The new government banned time-honored gambling activities. The rigorous reforms enacted by the new administration made sports betting difficult.