When do conditions permit doing a controlled fly-by over the runway of a commercial airport?
Essentially a flyby over the runway is nothing more than a planned and prepared go-around from a low altitude. If you say it is a stunt then it probably is not allowed under most legislations. And because of noise regulations airports aren't too happy with the manoeuvre either.
However, nobody will stop you from going around if you &quot;forget&quot; to put your gear down.
I have been in the cockpit on several flybys at several airports, all of them were dressed like a missed approach / go-around along the following lines:

Pilot &gt; &quot;Tower, Hotshot01, requesting permission for a flyby over runway XX
Tower &gt; Negative Hotshot01, you know we can't allow that any longer due to noise restrictions. I can't prevent you from making a go around though! Cleared to land RWY XX.
Pilot &gt; Hmm... ok, cleared to land, Hotshot01

&lt;Hotshot 01 approaches the threshold and applies full power&gt;

Pilot &gt; Hotshot01, going around.
Tower &gt; You owe me a beer now! .. &lt;vectors back to final approach / final destination&gt;