News for hackers. Stuff that matters.
Re:Faking votes on Hacker News by tlrobinson on Monday March 16, 2009 @09:39PM (#519189)
AFAIK, checking the Referer header actually works for preventing CSRF because you can't modify it for the types of requests that work cross domain, i.e. loading <img>, <script>, etc tags, or posting forms.
Re:Faking votes on Hacker News by tptacek on Monday March 16, 2009 @10:29PM (#519268)
Your assumption here isn't crazy, but it depends on the browser, and you shouldn't rely on it.