In this paper, we propose a new routing scheme that optimizes the anypath routing protocol with Byzantine attack resident. In anypath routing scheme, each node uses a set of next-hops and selected wormhole list privileges to decide the next-hops. Currently, anypath is still an open issue in wireless mesh networks. In this paper, we bring the Byzantine attack to the anypath routing protocol which could avoid the attacks and thus improve the delivery ratio. We propose the use of an authentication framework in which nodes need the appropriate credentials to participate in the anypath routing protocol as forwarding set member. We also use controlled suspicious mechanism in which a node that detects malicious behavior will flood a control messages to all the nodes in this network. All the others node will monitor the behavior. The simulation results show that with our proposed scheme, the routing protocol is less affected by the attacker.