When I'm not writing responsive applications and human-friendly code, I stay busy exploring the cinematic past of LA. I enjoy listening to film podcasts and recently watched the entire AFI Top 100.
My recommendation would not be to answer "that's illegal". Instead I'd encourage interviewees armed with this information about the illegality of the question to be confident dodging it or flat out declining to answer. Countering with "I am looking for something in [x] range for my next role" or, even better "Can you tell me about the salary range you have budgeted for this role?" The onus of providing salary information is on the hiring party, not the person applying for the position.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
My recommendation would not be to answer "that's illegal". Instead I'd encourage interviewees armed with this information about the illegality of the question to be confident dodging it or flat out declining to answer. Countering with "I am looking for something in [x] range for my next role" or, even better "Can you tell me about the salary range you have budgeted for this role?" The onus of providing salary information is on the hiring party, not the person applying for the position.