nRF52840, decilne connection.

I am developing a device based on nrf52840, this is peripheral. But I want to change the code so that I can only connect to my device using my application (in other cases, for example, using nRF Connect, my BLU device rejected the connection attempt).

I know that there is a filtering option - a whitelist, but this is filtering by MAC addresses (i.e. filtering by device) and it is limited by the amount of controller memory. I want the smartphone to be able to connect to the device only if my application is installed on it. How to do it?