Recently, the image retrieval process appears to be a challenging task to filter out a huge volume of objectionable images from retrieval. It is very easy for people of all ages to obtain such obscene images with just a few clicks on the internet, which could harm the adolescent. To prevent such serious social problems, this paper introduces a content-based image filtering (CBIF) framework in an image retrieval system. The proposed CBIF approach is split into two components. In the first component, the skin region of exposed human body parts is extracted based on a color segmentation method, and an efficient feature vector generation process is introduced based on frequent skin color pixels and scale-invariant structural features. A novel texture feature representation is presented in the retrieval and filtering process obtained by block-paired local binary pattern (BP-LBP). The final component introduces a novel image filtering framework for the retrieved images found from the first component based on a majority of voting method on three different machine learning classifiers backed by SVM, MLP, and CNN. The retrieval efficiency is analyzed with standard performance indicators such as precision, recall, and F-score on two large datasets: NPDI and NSFW.