Few things are more irritating than opening a window for some fresh air only for a fly to dart inside and start buzzing around, yet there is a remarkably straightforward way to keep them at bay. Most shop-bought fly sprays are convenient enough, but they contain harmful chemicals that can pollute your home and prove dangerous to inhale, making a more natural solution far preferable.

Andre Kazimierski, a cleaning expert from Sophia's Cleaning, has revealed that you can effortlessly deter flies without resorting to chemical sprays, provided you have cayenne pepper tucked away in your kitchen cupboard. He said: "Mix cayenne pepper with a cup of water to make a simple spray that repels common fruit flies. To be exact, mix one tablespoon of cayenne pepper in two cups of hot water."

It may sound peculiar, but flies depend heavily on their sense of smell to locate food and navigate their surroundings.

Cayenne pepper contains capsaicin, which carries an extraordinarily potent odour and is also fiery enough to seriously aggravate a fly's senses.

Not only do flies find cayenne pepper deeply unpleasant, but it also diminishes their desire to linger, as it masks the scent of food that draws them into our homes in the first place.

Picture of cayenne pepper in a cupboard

How to keep flies out of your home this summer

Allow the water to cool down completely before transferring it into an empty spray bottle. These can typically be found in the cleaning aisle of most supermarkets, as well as pound shops, garden centres and hardware stores. Apply the mixture around windows, doorways, the kitchen and any other areas where flies tend to gather.

Flies will instinctively avoid the pungent aroma, meaning your home is far more likely to remain pest-free throughout the summer months.

It's worth noting that the spices in cayenne pepper can become airborne after spraying and potentially irritate pets' eyes, so it's generally best avoided if you own a cat or dog.

Red spray bottle for organic gardening and eco friendly house cleaning hidden in green leaves.

However, there's no need to fret as you can substitute cayenne pepper with apple cider vinegar or even use cucumbers as a pet-friendly option to keep bothersome flies out of your home permanently.

This follows as while most households focus on emptying bins and clearing away leftover food, specialists point to three forgotten hotspots in the kitchen that may become prime breeding grounds for flies.

Nancy Emery, home and cleaning expert at Tap Warehouse, has shared that hot weather combined with open windows, barbecues and rising food waste can quickly transform kitchens into pest magnets.

The specialist explains: "During hot weather, many of us naturally become more aware of things like overflowing bins or food left out on the side. But there are a few easy to miss areas in the kitchen that can also attract flies, especially when temperatures rise.

"Things like pet food bowls, sink drains and rinsing out recycling are often overlooked, but keeping on top of them can make a big difference in helping to keep kitchens fresher during a heatwave."