A periodic porous structure is introduced for the first time into a VO2(M) film to block only heat rather than light. The as-obtained 2D and 3D films show excellent visible transmittance and solar modulation efficiency.