Hacker News new | ask | show | jobs
by tikumo 2721 days ago
You could just add some kind of hash based on the redirect url and check that, to ensure that it can't be altered.
1 comments

For this you need some pepper (i.e. a secret) to prevent doctoring.

The better option is an encrypted blob containing all relevant data and a timing component. Of course those thing do require effort. It makes it opaque for everyone but the server handling the redirect.