Due to the rapid mutation of porcine epidemic diarrhea virus (PEDV), existing vaccines cannot provide sufficient immune protection for pigs. Therefore, it is urgent to design the affinity peptides for the prevention and control of this disease. In this study, we made use of a molecular docking technology for virtual screening of affinity peptides that specifically recognized the PEDV S1 C-terminal domain (CTD) protein for the first time. Experimentally, the affinity, cross-reactivity and sensitivity of the peptides were identified by an enzyme-linked immunosorbent assay (ELISA) and a surface plasmon resonance (SPR) test, separately. Subsequently, Cell Counting Kit-8 (CCK-8), quantitative real-time PCR (qRT-PCR), Western blot and indirect immunofluorescence were used to further study the antiviral effect of different concentrations of peptide 110766 in PEDV. Our results showed that the P/N value of peptide 110766 at 450 nm reached 167, with a KD value of 216 nM. The cytotoxic test indicated that peptide 110766 was not toxic to vero cells. Results of the absolute quantitative PCR revealed that different concentrations (3.125 μM, 6.25 μM, 12.5 μM, 25 μM, 50 μM, 100 μM, 200 μM) of peptide 110766 could significantly reduce the viral load of PEDV compared with the virus group (p < 0.0001). Similarly, results of Western blot and indirect immunofluorescence also suggested that the antiviral effect of peptide 110766 at 3.125 is still significant. Based on the above research, high-affinity peptide 110766 binding to the PEDV S1-CTD protein was attained by a molecular docking technology. Therefore, designing, screening, and identifying affinity peptides can provide a new method for the development of antiviral drugs for PEDV.