Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Interesting. All of my messages have a link that leads to a "click to unsubscribe" button because email scanners frequently "click" links. I guess if I was under Swiss jurisdiction I may be breaking that law.


In countries where such laws exist, most of the same links that take you to a button will immediately unsubscribe instead. I guess IP addresses are used.


I know why the button is there, as GET requests are not supposed to change state but POST requests can, and you can only make a GET request by clicking on a link in the email.

I'd be interested to see if that interpretation has been upheld by a court. Has anyone taken legal action arguing that the server should have used the GET request as the action to unsubscribe, not made the user click an extra button to get that POST request.


You can change state with a GET request. You aren't "supposed" to do it but there's no technical barrier preventing an unscrupulous company from effectively using the GET as a POST.


Wait, what do scruples have to do with how you handle GET and POST?


Remember those web counter images that would increment the number displayed each time it received a GET request? They were the most evil. -scary laughter-


Thankfully they were all replaced by Google - Do no Evil - Analytics


> you can only make a GET request by clicking on a link in the email.

Took a look and indeed there are a lot of email clients that don't support the form tag.

https://www.caniemail.com/features/html-form/


I'm having trouble following what you mean. How can IP address help? What is the point of a button if you are immediately unsubscribed anyways?


The IP is used for geolocation. If the server detects that you're in a jurisdiction where clicking "unsubscribe" has to immediately unsubscribe you, the server does that, otherwise it shows you a button.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: