Web text classification, as one of the fundamental techniques of web mining, plays an important role in the web mining system. An improved term weighting method is proposed in this paper. Besides term frequency, the location of the term is also considered when calculating the weight of a term. Web pages were divided into 4 text blocks and each text block has its location weight. Experimental result shows that the precision of improved term weighting method is higher than traditional term weighting method.