it's going to have to be a serverside solution for this I've not actually written a script to do this so bare with me I'll whip out some code here but i'm not going to test it so work with it .. Make sure your server has php enabled and then instead of test.html make it test.php with the following code
PHP Code:
<? if (!strstr($_SERVER['HTTP_REFERER'], "disclaimer.html")) { header ("Location: http://" . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']). "/disclaimer.html"); } ?> <html><body>put your test.html html here </body></html>
This will redirect anyone who did not come from your disclaimer page back to the disclaimer page until they arrive from that page.... Remember it will only work as long as the server has php and you change the estention of test.html to test.php
|