Skip to content

Comment on Faking votes on Hacker Newsparent

Comments

Referer is totally insecure.

If all it is is votes, I say the right solution is "let it go".

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.

Your assumption here isn't crazy, but it depends on the browser, and you shouldn't rely on it.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.