I have been under the strong impression that, globally, laws that disadvantage people on the basis of their citizenship — barring immigration/visa laws — are extremely rare. In fact, I can't recall coming across any such law before I saw this question (which states that Norway has passed a law banning Russian citizens from flying drones).
So, how are such laws common (except for immigration/visa laws)? Are there many examples?
I am primarily interested in jurisdictions where citizenship (national origin) is a protected group for the purposes of illegal discrimination (admittedly, this doesn't preclude enacting laws that make such discrimination legal under certain circumstances, like exampled by the Norwegian law).
Update based on comments and answers:
This question primarily concerns laws that target holders of specific citizenships — as opposed to foreigners in general. Countries that advantage its own citizens and thus disadvantage everyone who is not (e.g. for land ownership) are pretty common and not interesting. Conversely, countries that target specific citizenships seem to be rare, and that's what the question is focused on.