UPD: Same question asked on security.stackexchange.com and the answer I got is different. Please follow there, to get the correct answer!
I\'m runni
Anti forgery tokens are useless in public parts of the site where users are not yet authenticated such as login and register forms. The way CSRF attack works is the following:
So you could use anti forgery tokens on authenticated parts of your site containing actions that could modify somehow the user state.
Remark: checking the Referer header for identifying that a request came from your site is not secure. Anyone can forge a request and spoof this header.