The answer might depend somewhat on your constraints in the project.
Are you allowed to tackle the issue on the server by asking if request.user_agent matches the correct devices?
Are you allowed to render the ID or even the whole section to the page with JavaScript on the client?
The scenario you've outlined here strikes me as less than ideal, so definitely knowing what tools you're allowed to use to solve it would be my first thought.
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.
The answer might depend somewhat on your constraints in the project.
Are you allowed to tackle the issue on the server by asking if
request.user_agent
matches the correct devices?Are you allowed to render the ID or even the whole section to the page with JavaScript on the client?
The scenario you've outlined here strikes me as less than ideal, so definitely knowing what tools you're allowed to use to solve it would be my first thought.