this post was submitted on 27 Jul 2023
10 points (91.7% liked)
Lemmy Support
4731 readers
21 users here now
Support / questions about Lemmy.
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
FYI: https://en.m.wikipedia.org/wiki/Honeypot_(computing)
But there should also be a separate endpoint to get an auth token. (I don't remember it off the top of my head). Then your bot should store that somewhere and send it as the
auth
parameter in every request.I know what a honeypot is ;) It exists outside computing, such as spy vs. spy.
What I have no idea of is what Lemmy does internally with a honeypot post it creates. Auto-report comments on them?
https://github.com/LemmyNet/lemmy/blob/d909f3455ddb89d45f35c78c4ce96bd0896469b1/crates/api_common/src/utils.rs#L302
If the honeypot is set the request is simply discarded.