The Israeli parliament has passed a law banning entry to foreigners who publicly call for boycotting the Jewish state or Israeli communities in the West Bank.

The law was passed in the Knesset on Monday by a vote of 46-28 and 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.”

The measure was meant to target groups, rather than individuals, according to

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

The Interior Ministry will be able to make exceptions to the law, and foreigners with residency permits will not be affected, according to The Times of Israel.