The adsorption of Pd, Ag and Au atoms on a porous silica film on Mo(112) is investigated by scanning tunneling microscopy and density functional theory. While Pd atoms are able to penetrate the holes in the silica top-layer with virtually no barrier, Ag atoms experience an intermediate barrier value and Au atoms are completely unable to pass the oxide surface. The penetration probability does not correlate with the effective atom size, but depends on their electronic structure. Whereas Pd with an unoccupied valence s-orbital has a low penetration barrier, Ag and Au atoms with occupied s-states experience a substantial repulsion with the filled oxide states, leading to a higher barrier for penetration. In the case of Ag, the barrier height can be temporally lowered by promoting the Ag 5s-electron into the support. The Mo-supported silica film can thus be considered as a primitive form of an atomic sieve whose selectivity is controlled by the electronic structure of the adatoms.