Skip to content

What is the anonymous author identifier based on? #1057

Answered by raccube
greyidol asked this question in Q&A
Discussion options

You must be logged in to vote

The anonymous author identifier is a hashed value based off of the request IP.
The code responsible for this can be found here:
https://github.com/Retrospring/retrospring/blob/main/app/models/anonymous_block.rb#L10
https://github.com/Retrospring/retrospring/blob/main/app/controllers/ajax/question_controller.rb#L34

If you want this data to be accessible by the application when proxied via nginx, you will need to set a X-Forwarded-For or X-Real-IP header.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@greyidol
Comment options

@greyidol
Comment options

Answer selected by raccube
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants