Network immunization is an effective strategy for restraining the propagation process in complex networks. Although lots of strategies based on the topological structure of a network have achieved good immunization effects, they have the same homogeneous assumption, i.e., nodes have same characteristic. However, more and more existing studies have found the heterogeneous characteristics of nodes in a network. For example, nodes have different activity during the propagation process and a node with higher activity can promote the propagation process. Combining the network topology and the activity of node, this paper proposes a novel strategy for restraining virus propagation. Some experiments have been conducteded in benchmark and synthetic networks. The simulation results show that the proposed strategy can restrain propagation effectively.