Zend certified PHP/Magento developer

Is there any way to have blue tooth on, but to prevent unknown devices from transfering files on to an android 10 device

I have an android 10 device and I would like to keep blue tooth turned on so that it can communicate with another device. I was a bit concerned that I got a message on my android device saying that an unknown device had tried to download a file onto my android device, but that the transfer was cancelled by the user…

I tried going into the settings, but it just seems that either the device has Bluetooth on and is discoverable or it is off … I want to have it on, but restrict access to my device through Bluetooth… Any suggestions comments… Am I worrying about nothing? …. And if this is a stupid question then please let me know in the comments and I will delete it.