There are other ways.... For example, offer discounted fares to residents of a certain country and require a government ID to receive the discount.
This system is already in place in countries like Cambodia where airlines runs special fare promotions for Khmer ID card carriers with fares at 50% or less of the fare available to non Khmer customers.

Cheers