DNA-binding protein that specifically binds heat shock promoter elements (HSE) and activates transcription. In higher eukaryotes, HSF is unable to bind to the HSE unless the cells are heat shocked. This is the function of Ensembl gene identifier ENSG00000025156 (HSF2, heat shock transcription factor 2).