3 ms·
Honestly, This is good to prevent malware but I imagine this breaks a bunch of things if for eg. If the link has a limited visit count. The link will "expire" b
by st0le 7y ago
Honestly, This is good to prevent malware but I imagine this breaks a bunch of things if for eg. If the link has a limited visit count. The link will "expire" before the recipient gets a chance to view it.
- Nextgrid 7y agoTo be fair, an HTTP GET request should never modify the state of the system - hitting a link should not change anything. If you need to expire links then make the initial link display a form with a submit button (which does a POST) to reveal the content (and expire the link). Legitimate crawlers don’t submit forms so it should be safe.
- mehrdadn 7y ago> To be fair, an HTTP GET request should never modify the state of the system In theory. But that's not how the world I live in seems to work.
- bagacrap 7y agoI think it's pretty common practice. Otherwise search engine web crawlers would be wreaking havoc.
- mehrdadn 7y agoNo, both your logic and premise are incorrect. To give just one example, rate-limiting is clearly widespread stateful practice applied to GET requests, and it doesn't cause web crawlers to wreak havoc on anything.