Supported nickel catalysts represent a class of important catalytic materials in selective hydrogenations, but applications are frequently limited by metal agglomeration or active-site blocking induced by the presence of hydrogen halides. Herein, we report a novel pre-coking strategy, exposing the nickel nanoparticles under methane dry reforming conditions to manipulate performance in the continuous-flow hydrogenation of 1,2-dichloro-4-nitrobenzene. Compared with the pristine nickel catalyst, the nanotube-like coke-modified nickel catalyst showed weakened hydrogenating ability, but much improved stability and slightly better selectivity to the target product, 3,4-dichloroaniline. Characterization results revealed that the strengthened stability performance can be mainly linked to the reduced propensity to retain chlorine species, which seems to block the access of the substrate molecules to the active sites, and thus is a major cause of catalyst deactivation on the pristine nickel catalyst. Coke deposition can occur on the pre-coked nickel catalyst but not on the pristine analog; however, the impact on the stability performance is much milder compared with that on chlorine uptake. In addition, the presence of coke is also beneficial in restraining the growth of the nickel nanoparticles. Generally, the developed method might provide an alternative perspective on the design of novel transition-metal-based catalytic materials for other hydrogenation applications under harsh conditions.