This print is a threaded to be a standard mason jar lid. Just put some bait in the jar and the pests fly in and are unable to find their way out. Has a convenient spot to hang the trap should you want to.
I suggest not using sweet bait as you are likely to trap bees and other beneficial pollinators. Something fermenting or meat.
The author remixed this model.
I added the top entrances and a hanger to make it less likely that the pests will be able to see light up the hole and escape.