Many drones, such as those from DJI, are now being designed not to work when near major airports.
Presumably drones are pre-programmed at the factory with the coordinates of all the world's major airports.
Flight is prevented in the “no-fly zone” but can continue with height restrictions in the restricted-altitude zone.
The Istanbul drone pilot is on record as saying that he succeeded in disabling those protections in order to perform the video flight.