To solve this problem many research has already been done but there is no approach which provide a reliable solution of this problem. By considering the same problem we have proposed an approach which will provide a reliable security in most of the cases where MITM problem occurs.