If you do choose to license your code under such a license, it would not be considered open source (according to the OSI) or free software (according to the FSF). Here's the relevant part of the Open Source Definition:
> The license must not restrict anyone from making use of the program in a specific field of endeavor. For example, it may not restrict the program from being used in a business, or from being used for genetic research.
> The license must not restrict anyone from making use of the program in a specific field of endeavor. For example, it may not restrict the program from being used in a business, or from being used for genetic research.