A couple of years ago, someone helped me with the code for an http referrer wild card. This was the solution:
$regex = '#^http://(www\.)?mydomain.com/checkout.html#';
if(!preg_match($regex, $_SERVER['HTTP_REFERER']))
{
header('Location: forbidden.html');
exit;
}
The full thread is here: http://phpbuilder.com/board/showthread.php?t=10355225
Now this works great, but how can I edit this so that the domain can be either .com or .co.uk?