Of course, Indonesia did this in the past along with other Asian Muslim majority countries. This is why Israel was not allowed to participate in Asian competitions in sport and joined Europe. Israel tried to compete in FIFA World Cup qualifiers but kept getting blocked as other countries refused to compete.
Israel technically qualified to the 1958 World Cup because it had wins from the forfeits and they never actually played a match against a competitor. Turkey, Indonesia, Egypt, Sudan all withdrew from the qualifying tournament rather than face Israel. This was unprecedented so FIFA added a last minute rule to the qualification stating a team needed to have at least one win to qualify to the World Cup. So because of this rule, Israel was asked to compete against the last eliminated European team. Belgium was selected to compete against them and refused. Wales was drawn next. Wales defeated Israel 2-0 and as a result qualified to the World Cup in place of the Africa/Asia Conference which Israel had won by default.
Israel was given hosting rights for the 1964 Asian Cup. Out of 15 competing teams, 11 withdrew. Afghanistan, Cambodia, Ceylon (Sri Lanka), Indonesia, Iran, Japan, Myanmar, Pakistan, Philippines, Republic of China, and Singapore did not attend.
North Korea, Japan, and India competed. With only 4 teams, Israel won the competition.
Other incidents happened through the years, culminating at the 1974 Asian Games held in Iran.
Iran and Israel competed in the final match, with Iran winning 1-0. At these games, Kuwait brought forward a motion to permanently ban Israel from the Asian Cup. The motion passed with 17 countries voting for expulsion and 13 countries against it. 6 countries did not vote.
With Israel being forced out of Asian Cup as a qualifier for the World Cup, they had no option qualify to a future World Cup.
Israel was moved to Europe (UEFA) in 1982,. Due to the difficulty of the continental conference, Israel was moved to Oceania for 1986 and 1990. Israel was formally returned to Europe for 1994.
Indonesia revoking the visas and banning Israel from Worlds is not the first World competition in which Israel was banned.
Israel was also banned from the 2024 World Ice Hockey Championships, held in Czechia. The same reason was stated for Israel's exclusion: security concerns after October 7 and not being able to provide safety for all the competitors. It was later reversed and Israel was able to compete at the U20 World Ice Hockey Championships later in 2024.