Molecularly imprinted polymers (MIPs) selective for lysozyme were prepared on SPR sensor chips by radical co-polymerization with acrylic acid and N,N'-methylenebisacrylamide. Gold-coated SPR sensor chips were modified with N,N'-bis(acryloyl)cystamine, on which MIP thin films were covalently conjugated. The presence of NaCl during the polymerization and the re-binding tests affected the selectivity and the optimization of NaCl concentration in the pre-polymerization mixture and the re-binding buffer could enhance the selectivity in the target protein sensing. When the lysozyme-imprinted polymer thin films were prepared in the presence of 40 mM NaCl, the selectivity factor (target protein bound/reference protein bound) of MIP in the re-binding buffer containing 20 mM NaCl was 9.8, meanwhile, that of MIP in the re-binding buffer without NaCl was 1.2. A combination of SPR sensing technology with protein-imprinted thin films is a promising tool for the construction of selective protein sensors.