I built a small Go web app to do some security testing. When a user registers for an account, I generate a 128-bit secure token and email it to the address they provided (as a URL). Token URLs look like this: /validate/email/1d00a5c2648c211befd33f5a8a7cbfab The token is cryptographically strong and disappears after access. It can't be guessed and no one but the email account holder should click it, but I am seeing th…
You need to authenticate the user before the activation.
Gmail is opening and caching URLs within emails without user intervention (2019)
111–120 of 271 posts
Re: Gmail is opening and caching URLs within emails without user intervention (2019)
#112Earlier quoted context omitted.
I'm sure Google uses a specific user agent to make a request, so you can filter that out. A better solution is to assume that some middleman (email server or client) will always try to access links in the email. Instead send the user a code and have them manually enter it on the linked page.
Or link them to a page with a POST form that actually performs the action. That way you only add a single click to the flow, and no remotely sane software will automatically perform POST requests to arbitrary urls.
I'm not a web developer. Out of curiosity, why is that?
Re: Gmail is opening and caching URLs within emails without user intervention (2019)
#113Earlier quoted context omitted.
That's why it should not be HTTP GET endpoint. Get endpoint should only be when request is idempotent. Use HTTP POST for your usecase.
Is it possible to embed a link that uses POST in an email? I can't think of a way unless form tags work, but then the link wouldn't work in a plain text email reader
Re: Gmail is opening and caching URLs within emails without user intervention (2019)
#114Re: Gmail is opening and caching URLs within emails without user intervention (2019)
#115This is a good feature in my opinion. Why should I let the sender know when I click on tracking links or view the email? If you really want to, just filter out clicks from AS15169.
Some links include automatic login functionality. I definitely don't want Google logging in to my accounts.
Re: Gmail is opening and caching URLs within emails without user intervention (2019)
#116I built a small Go web app to do some security testing. When a user registers for an account, I generate a 128-bit secure token and email it to the address they provided (as a URL). Token URLs look like this: /validate/email/1d00a5c2648c211befd33f5a8a7cbfab The token is cryptographically strong and disappears after access. It can't be guessed and no one but the email account holder should click it, but I am seeing th…
Re: Gmail is opening and caching URLs within emails without user intervention (2019)
#117Earlier quoted context omitted.
Or link them to a page with a POST form that actually performs the action. That way you only add a single click to the flow, and no remotely sane software will automatically perform POST requests to arbitrary urls.
> no remotely sane software will automatically perform POST requests to arbitrary urls I'm not a web developer. Out of curiosity, why is that?
Re: Gmail is opening and caching URLs within emails without user intervention (2019)
#118Earlier quoted context omitted.
Clicking a link (one action) is easier than copying a code and pasting it (two actions). It's possible the user will copy the wrong thing or paste the code into a wrong field, including the browser address bar. All of that may affect the sign-up rate.
Kinda. I often read my email on my phone while working on my desktop. (Or visa versa). In these situations, a code is always better. I hate the links personally.
Re: Gmail is opening and caching URLs within emails without user intervention (2019)
#119Earlier quoted context omitted.
Or link them to a page with a POST form that actually performs the action. That way you only add a single click to the flow, and no remotely sane software will automatically perform POST requests to arbitrary urls.
> no remotely sane software will automatically perform POST requests to arbitrary urls I'm not a web developer. Out of curiosity, why is that?
Re: Gmail is opening and caching URLs within emails without user intervention (2019)
#120Earlier quoted context omitted.
That's why it should not be HTTP GET endpoint. Get endpoint should only be when request is idempotent. Use HTTP POST for your usecase.
Is it possible to embed a link that uses POST in an email? I can't think of a way unless form tags work, but then the link wouldn't work in a plain text email reader