Anti-CSRF tokens are a common protection mechanism against cross-site request forgery. This post explains the idea behind CSRF tokens and shows recommended ways to use them to prevent CSRF attacks on websites and web applications.
It has methods to generates tokens and write them into the HTML and a PHP session.It uses XSS mitigations while writing the form footer with the token.Also, it has the option to exclude some URLs from the validation process. The excluded URLs bypass the CSRF validation process....