Keeping airports safe from drones

Doesn't it seem like common sense? That it's a bad idea to fly a drone near an airport? And that it's probably against the law too? This doesn't seem to have stopped drone owners near London Heathrow, London Gatwick, Newark, Dublin and Dubai airports