Okay, what I am trying todo:
check to make sure the user came from page index.php?x=error&type=browser
if they came from there, load the page; if they didn't, check to make sure they are using Firefox, if not, go to index.php?x=error&type=browser, if they are using firefox, continue to load the page.
This is my code:
<?php
$error_refer = "index.php?x=error&type=browser";
if(($_SERVER['HTTP_REFERER'])==$error_refer);
{
exit;
}
if(strpos($_SERVER['HTTP_USER_AGENT'], 'Firefox')==false)
{
header("Location: index.php?x=error&type=browser");
exit;
}
?>
It doesnt seem to be working, any suggestions on how to make this work?
Thanks!