Yeah you can do this with php and luckily its pretty basic. What you are asking about is called the Referer URL. In PHP it is accessed like so: "@$HTTP_REFERER"
here is an example that tests if the user came from 'http://www.example.com/allow.html'
PHP Code:
<?php
$ref=@$HTTP_REFERER;
if($ref == 'http://www.example.com/allow.html')
{
echo "<html><head></head><body><p>Hello World!</p></body></html>";
}
else
{
die "Wrong way";
}
?>
Thats a simple example. And with alittle more work you could have it doing what you want.
Bookmarks