Re: does php 6 support $REMOTE_ADDR???
- From: "J.O. Aho" <user@xxxxxxxxxxx>
- Date: Sun, 26 Nov 2006 07:26:23 +0100
jon wrote:
'm trying to make a page that only prints the page when it is acess
from one site only. I typed the code in and nothing is happening heres
the code
<?php
//switch ($HTTP_REFERER)
switch ($_SERVER['HTTP_REFERER']) {
case ("www.sentinelsolutionsinc.com/js/secret.html") :
showme();
break;
case "http://www.sentinelsolutionsinc.com/js/secret2.php" :
showme();
break;
case "http://www.sentinelsolutionsinc.com/js/scripts.html" :
showme();
break;
case "http://www.sentinelsolutionsinc.com/js/mjokes.html" :
showme();
break;
case "http://www.sentinelsolutionsinc.com/js/movies.html" :
showme();
break;
default : print "<body
onload=\"window.location='index.html'\">";
}
function showme()
{
**website here***
}
?>
Keep in mind that not everyone does have the feature enabled on their browser and many "firewalls" filters it away too, as the information can be used to see a bit about the users surf habits.
//Aho
.
- References:
- does php 6 support $REMOTE_ADDR???
- From: jon
- does php 6 support $REMOTE_ADDR???
- Prev by Date: does php 6 support $REMOTE_ADDR???
- Next by Date: html and php data access
- Previous by thread: does php 6 support $REMOTE_ADDR???
- Next by thread: html and php data access
- Index(es):
Relevant Pages
|