Re:Show HN: This up votes itself
by simonw on Thursday March 22, 2012 @08:59PM
(#3742983)
That's not a good enough solution - there are decent reasons that a referrer header might be missing (some PC antivirus software strips out referrer headers for example). The only safe way to handle this is with a POST request protected by a CSRF token tied to a cookie.
[ Parent
| on HN ]
+1 You can’t trust the Referer header.