Is possible specify who can send bitcoins to me?
Not possible.  Anyone who can spend a utxo can create a transaction sending those coins to any address, or any script, that they wish.  There is no way to forbid people from sending coins to your address.

Your software will need to filter the transactions and determine which of them were authorized by you.