A connector, comprising: a counterpart housing having a lock receiver; a housing main body that is engageable to the counterpart housing, the housing main body defining a top surface; a lock arm that extends rearward in a cantilever shape from the top surface of the housing main body, can be bent and deformed in a vertical direction crossing a direction of engagement of the housing main body and the counterpart housing, and holds the housing main body and the counterpart housing in a normal engagement state by being elastically engaged to the lock receiver; a detecting member that is assembled to the top surface of the housing main body and is moved from an initial position to a detecting position when the housing main body and the counterpart housing are engaged to each other, the detecting member being provided with an elastic arm portion that extends in a cantilever shape diagonally upward and forward, and can be bent and deformed in a vertical direction; and an abutting portion that is formed at an extended end portion of the elastic arm portion, restricts the movement of the detecting member from the initial position to the detecting position by engaging the lock arm from behind, and releases engagement of the lock arm if the housing main body and the counterpart housing are engaged to each other; characterized by a contact portion that is formed at the extended end portion of the elastic arm portion, and restricts the abutting portion from slipping off upward from engagement of the lock arm by contacting the lock arm from below; and an excessive bending restriction portion that includes: (i) a pair of side walls (14, 15) that are raised from the top surface of the housing main body, and (ii) a bridge portion that connects top ends of the side walls (14, 15), and restricts excessive bending of the lock arm upward by covering the top surface of the lock arm with the bridge portion. a counterpart housing having a lock receiver; a housing main body that is engageable to the counterpart housing, the housing main body defining a top surface; a lock arm that extends rearward in a cantilever shape from the top surface of the housing main body, can be bent and deformed in a vertical direction crossing a direction of engagement of the housing main body and the counterpart housing, and holds the housing main body and the counterpart housing in a normal engagement state by being elastically engaged to the lock receiver; a detecting member that is assembled to the top surface of the housing main body and is moved from an initial position to a detecting position when the housing main body and the counterpart housing are engaged to each other, the detecting member being provided with an elastic arm portion that extends in a cantilever shape diagonally upward and forward, and can be bent and deformed in a vertical direction; and an abutting portion that is formed at an extended end portion of the elastic arm portion, restricts the movement of the detecting member from the initial position to the detecting position by engaging the lock arm from behind, and releases engagement of the lock arm if the housing main body and the counterpart housing are engaged to each other; characterized by a contact portion that is formed at the extended end portion of the elastic arm portion, and restricts the abutting portion from slipping off upward from engagement of the lock arm by contacting the lock arm from below; and an excessive bending restriction portion that includes: (i) a pair of side walls (14, 15) that are raised from the top surface of the housing main body, and (ii) a bridge portion that connects top ends of the side walls (14, 15), and restricts excessive bending of the lock arm upward by covering the top surface of the lock arm with the bridge portion.