$2 = $_GET['2']; if ($2 =="") {header("Location: /"); }
else
$3 = $_GET['3']; if ($3 =="") {header("Location: /"); }
else
$4 = $_GET['4']; if ($4 =="") {header("Location: /"); }

this runs circles around modifying a robots file... Thanks Ed!
I can even check certain variables depending on what page youre on!
[codebox]/* get url */
$currentFile = $_SERVER["SCRIPT_NAME"];
/* remove folder structure */
$parts = Explode('/', $currentFile);
$page = $parts[count($parts) - 1];
/* define possible variables */
$ONE = $_GET['1'];
$TWO = $_GET['2'];
$THREE = $_GET['3'];
$FOUR = $_GET['4'];
/* run through page scenarios, checking for empty url variables and booting you home if necessary */
if ($page == "pageone.php" )
{
if ($TWO =="") {header("Location: /"); }
else
if ($THREE =="") {header("Location: /"); }
}
if ($page == "pagetwo.php" )
{
if ($ONE =="") {header("Location: /"); }
else
if ($FOUR =="") {header("Location: /"); }
} ...[/codebox]

sorry, i have to share my exitement as no-one in my office cares right now.
Edited by darren, 28 May 2008 - 05:51 PM.