As the world witnesses the new Muslim ban issued by Donald Trump, Israel has enacted a law banning entry to foreigners who publicly call for boycotting the Jewish state or its settlements.

The Israeli Parliament (the Knesset) passed the law by a vote of 46-28 on Monday, according to Haaretz.

The ban applies to any foreigner “who knowingly issues a public call for boycotting Israel that, given the content of the call and the circumstances in which it was issued, has a reasonable possibility of leading to the imposition of a boycott – if the issuer was aware of this possibility.”

It was put in place primarily to target groups, rather than individuals. The ban includes those who call for boycotting areas under Israeli control, such as the West Bank settlements.

“It doesn’t cover any individual who ever said something. It’s aimed mainly at organisations that work against Israel,” according to Roy Folkman, a lawmaker from the Kulanu party.

The move comes as the Boycott, Divestment and Sanctions (BDS) campaign continues to make gains in Europe and across the world. The BDS aims at holding Israeli accountable for its atrocities against Palestinian people.

However, the BDS has been under harsh crackdown in the US, Canada, and France.