I recently stopped ignoring recruiters but I instead respond to say "thanks for reaching out, I'm actively looking, but if I'm going to invest the time in learning more about the opportunity, can you tell me the salary range for the position? I need to know if I can afford to take the role"
Most of the time they give a range.
Even if I wasn't looking, I'd have picked up valuable market insight.