In order to improve the plugging performance of high-temperature and high-salt oil reservoir plugging agents, this paper utilizes a copolymer composed of acrylamide and 2-acrylamide-2-methylpropanesulfonic acid (AM/AMPS) as the polymer, polyethyleneimine as the cross-linking agent, and nylon fiber as the stabilizer to develop a high-temperature- and high-salt-resistant gel system. This study analyzed and evaluated the temperature resistance, salt resistance and blocking performance of the gel system. The evaluation results show that the gel-forming strength of this gel system can reach an H level, and it has good thermal stability at the high temperature of 130 °C. At the high salinity of 240,720 mg/L, the syneresis rate remains below 2.5%, and the gel-forming time is greater than 15 h; the higher the temperature, the shorter the gelling time. The results of our sand-filled pipe-plugging experiment show that the gel system can adapt to sand-filled pipes with different levels of permeability, and reaching a plugging rate of 94%.