This paper try to construct an intelligent security system based on face recognition. The data used in this research are frontal face images and without obstacles, and facial images with obstacles. In this research, we used Content Based Image Retrieval or CBIR method. Approximately 10,000 images used in this work which is collected from internet, police department office, and shooting directly as primary data. Facial image data are stored in the database object-based files through process of identification and facial recognition. Consequently, facial images are retrieved using facial similarity techniques. In this stage of identification , an application can specify shape of the front face, performs feature extraction, and running intelligent Similarity (matching face data) which open the door automatically . This system can be used to minimize the occurrence of criminality occurs nowadays. This system can be used such as for house door security, office doors, and airport gates. The experiments result show that our algorithm quite good in face detection and recognition to open the door.