A method of treating and/or preventing viral infections including common cold, influenza, and coronaviruses with or without symptoms is based on a fact that virus's survival time depends on the temperature and relative humidity, and an assumption that a virus can be killed or its ability to penetrate and replicate copies inside living cells can be weakened, by prolonged exposure to such environment, which can be controlled by an individual. Creating such environment in the upper respiratory and gastrointestinal (GI) tracts and preventing spread of the virus into the lower part of the respiratory tract using continuous and prolonged heat exposure on the virus, prevents development of pneumonia.