Protection by nets

If the animals involved come into the house from outside, for example mosquitoes and gnats, nets fixed over the windows and doors will be effective. In the absence of nets, ordinary curtains will provide a certain amount of protection, especially if they have been treated with some kind of deterrent.