Apple cider vinegar: another solution is to use apple cider vinegar, as it has a repellent effect. This product has to be placed inside a jar, which is covered with a funnel made of paper and that will help to catch them because they will be able to enter the container, but they will not be clear where to exit.
You tell yourself and you contradict yourself. If it is repellent, how can you attract them to enter the funnel? Could it be that the idea was also trapped in the funnel?