Prevent various attacks is one of the most challenging tasks of Ad Hoc networks.An improved protocol named CT_DSR is proposed in this paper based on a neighbors-trust mechanism especially for the Ad Hoc networks routing protocol named DSR.CT_DSR includes credibility management and routing test.Experimental results show that CT_DSR gets better network stability than DSR.