Re: does php 6 support $REMOTE_ADDR???



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
.



Relevant Pages

  • Re: IIS or directory security issue on 2003 E server
    ... "Allow unknown CGI/ISAPI extensions" to Allow. ... You also need the appropriate ISAPI ... *assume* PHP is implemented through an ISAPI filter, ... Looking at that on the site I do not see any filters. ...
    (microsoft.public.windows.server.security)
  • Re: IIS or directory security issue on 2003 E server
    ... Either that or PHP ... "GeekBoy" wrote: ... "Allow unknown CGI/ISAPI extensions" to Allow. ... Looking at that on the site I do not see any filters. ...
    (microsoft.public.windows.server.security)
  • Re: Mail() Script Getting Filtered As Spam
    ... > Using PHP 4, I developed a form to be submitted and emailed. ... > is filtered as 'spam'. ... I do not know how if I need the email header ... I heard that some spam filters filter out PHP generated messages because PHP ...
    (comp.lang.php)
  • Re: User-defined Globals?
    ... Jon Grieve wrote: ... > once-only variables in PHP. ... > site-wide level. ... I am unaware of a 'real' global solution, but that doesn't mean there isn't ...
    (comp.lang.php)
  • Re: IIS or directory security issue on 2003 E server
    ... but it mentions php5isapi.dll in the PHP directory. ... "Allow unknown CGI/ISAPI extensions" to Allow. ... You also need the appropriate ISAPI ... Looking at that on the site I do not see any filters. ...
    (microsoft.public.windows.server.security)