Fixing Unvalidated Redirects and Forwards in PHP

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(); ?-->