Is there any flight search website that allows to exclude results with layovers in certain countries?

  • As a gentle reminder, one of the expectations of Stack Exchange is that you demonstrate your attempts at initial research. For example, which websites have you checked already? This saves the answerers from having to spend time on duplicated effort.
    – choster
    Oct 29, 2018 at 18:34
  • 1
    Does this answer your question? Searches that exclude particular transit airports Nov 17, 2020 at 13:58
  • @Kate Gregory it doesn't, because the question is about countries rather than airports.
    – user626528
    Nov 17, 2020 at 17:39

4 Answers 4


In ITA Matrix there is an advanced routing code for filtering entire countries. Just enter ~l:nUS+ in the routing codes section to avoid layovers in USA for example.

This is where you enter the routing code. Routing code

These are the results without any routing code. Flights without the routing code

These are the results when specifying no layovers in USA. Flights with the routing code

  • That's great. Thanks. How do I exclude several countries? Jul 25, 2021 at 15:30
  • It seems like the following code would exclude both USA and Canada. ~l:nCA,nUS* Jul 27, 2021 at 9:03

The only site I know with remotely close functionality is ITA Matrix (http://matrix.itasoftware.com). There, you can use "Advanced routing codes" to specify certain airports (though not countries) to not transit through.

Let's say you're going from San Francisco to Delhi, but for whatever reason, would like to avoid China, Japan, and Korea. Off the top of my head, I know that the major hubs in China, Japan, and Korea are ICN (Seoul Incheon), NRT (Tokyo Narita), PEK (Beijing), PVG (Shanghai), HKG (Hong Kong). We can use advanced routing codes to exclude these:

Search parameters with advanced routing codes: ~ICN,NRT,HKG,PEK,PVG

The results predictably go through Europe rather than Asia (e.g., through Munich, Istanbul):

Search results

If you missed any airports the first go-around, you can go back and add them to the search filters. Once you have a result that you'd like to book, copy and paste it into BookWithMatrix to book the ITA Matrix itinerary.


Google flights gives you a list of transfer airports it has found and lets you include/exclude them from your search.

Unfortuately it doesn't tell you what countries those airports are in or offer a quick way to (de)-select all the airports in a given country. So excluding all the options in a country like the US may take a fair bit of effort.


I don't know about excluding particular layover countries. However, some sites will let you pick only certain airlines. I believe these option will let you filter out some countries.

For example, a flight search on https://www.travelocity.com/ will let you do the basic search (from, to, and dates) and then let you restrict the search to specific airlines; whether the routing is direct, 1 stop or 2+ stops; and whether the depart/arrive times are morning, afternoon or evening.

Similar options are available with https://www.kayak.co.uk, https://www.expedia.com and probably elsewhere as well.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .