The vast majority of purchased off the shelf drones will can not fly near airports, the four big manufacturers have implemented no fly zones, each drone carries a database of forbidden GPS co ordinates and the drone just won't enter that airspace.
There are still a few custom made machines that can.