Ellagic acid (EA) is a natural polyphenol and possesses excellent in vivo bioactivity and antioxidant behaviors, which play an important role in the treatment of oxidative stress-related diseases, such as cancer. Additionally, EA is also known as a skin-whitening ingredient. The content of EA would determine its efficacy. Therefore, the accurate analysis of EA content can provide more information for the scientific consumption of EA-rich foods and cosmetics. Nevertheless, the analysis of EA in these samples is challenging due to the low concentration level and the presence of interfering components with high abundance. Molecularly imprinted polymers are highly efficient pretreatment materials in achieving specific recognition of target molecules. However, the traditional template molecule (EA) could not be absolutely removed. Hence, template leakage continues to occur during the sample preparation process, leading to a lack of accuracy in the quantification of EA in actual samples, particularly for trace analytes. In addition, another drawback of EA as an imprinting template is that EA possesses poor solubility and a high price. Gallic acid (GA), called dummy templates, was employed for the synthesis of MIPs as a solution to these challenges. The approach used in this study was boronate affinity-based oriented surface imprinting. The prepared dummy-imprinted nanoparticles exhibited several significant advantages, such as good specificity, high binding affinity ((4.89 ± 0.46) × 10−5 M), high binding capacity (6.56 ± 0.35 mg/g), fast kinetics (6 min), and low binding pH (pH 5.0) toward EA. The reproducibility of the dummy-imprinted nanoparticles was satisfactory. The dummy-imprinted nanoparticles could still be reused even after six adsorption–desorption cycles. In addition, the recoveries of the proposed method for EA at three spiked levels of analysis in strawberry and pineapple were 91.0–106.8% and 93.8–104.0%, respectively, which indicated the successful application to real samples.