<<< Previous question <<< Question ID#0601.md >>> Next question >>>
What is the best measure one can take to prevent a cross-site request forgery (CSRF)?
- A) Add a secret token to all form submissions
- B) Disallow requests from outside hosts
- C) Turn off allow_url_fopen in php.ini
- D) Filter all output
Answer
Answer: A