 All the outdoor scenes were actually filmed in San Francisco except  for the bank robbery which Dirty Harry foils, when he first utters  his immortal phrase, "Do you feel lucky?" This scene was shot on a  set.