Air injection is one of the effective means to enhanced oil recovery, but gas channeling is prone to occur during air injection, which affects the development effect. After gas channeling, the oxygen content at the output end rises and there is a risk of explosion, the key to the success of air injection is whether it can block the gas channeling. Bohai 34-2 block is a high temperature and low permeability reservoir, conventional methods such as adjustment of well pattern and water-gas alternation are not effective, while normal blocking agents has some problems such as high cost and poor stability need to be solved. Therefore, a new polymer foam system was developed based on the dual characteristics of polymer viscosification and foam flooding, and the thermal stability and shear resistance of the system were tested. The plugging performance and scope of profile control system were evaluated by displacement experiment and CT scan. On this basis, two dimensional models were used to conduct WAG after air injection and plugging agent injection after air injection. The results show that the plugging rate of the new polymer foam system is up to 98% at 130℃, and the enhanced oil recovery is 5% higher than that of the conventional water-gas alternations, and the plugging ability and oil displacement effect are good at high temperature, which provides a new idea for gas injection prevention and enhanced oil recovery in high temperature and low permeability reservoirs.