Fixing Unvalidated Redirects and Forwards in PHP

This post describes how to fix unvalidated redirects and forwards in php with code example.

Posted by on March 22, 2014 1 Comment

Note: This post is part of our series on “How to Fix Unvalidated Redirects and Forwards“. The series contains examples on how to fix unvalidated redirects and forwards in various programming languages.

 

The following code will allow you prevent unvalidated redirects and Fowards in PHP

<!--?php 	header('Location:  destination.php'); 	exit(); ?-->

One thought on “Fixing Unvalidated Redirects and Forwards in PHP

  1. Pingback: How to Fix Unvalidated Redirects and Forwards - Secure Coding Blog - Redirect Abuse

Leave a Reply

Your email address will not be published. Required fields are marked *