The widely used definition of a habitable zone (HZ) for planets as a circumstellar area, where the star's luminosity is sufficiently intense to maintain liquid water at the surface of a planet, is shown to be too simplified. The role of a host star's activity and the intrinsic magnetic field of a planet with respect to their influence on mass loss processes of close-in gas giants and a definition of a HZ for the terrestrial-type exoplanets are discussed. The stellar X-ray/EUV radiation and the stellar wind result in ionization, heating, chemical modification, and slow erosion of the planetary upper atmospheres throughout their lifetime. The closer the planet is to the star, the more efficient are these processes, and therefore, the more important becomes the magnetic protection of a planet as a potential habitat. Different ways for planetary magnetic dipole moment estimation, based on existing magnetic dynamo scaling laws as well as on the recent measurements of hot atomic hydrogen clouds around close-in ‘Hot Jupiters’ are considered, and the predictions of these estimations are compared to each other.