Search code examples
phpzend-frameworkcsrf

Is there a particular approach to prevent CSRF/XSRF with Zend Framework?


Cross-site request forgery (CSRF or XSRF) attacks provokes unauthorised actions in your web application by users you believe to be trusted.

That is surely something we would like to prevent, and I am particularly working with Zend Framework. Is there a Zend Framework approach to prevent CSRF/XSRF?


Solution

  • Yes. Zend_Form_Element_Hash