Hi all,
We are trying to use SSI to read the IP address of requests to our
webserver so we can deny some ip addresses access to certain pages.

I have followed the instructions at:
http://httpd.apache.org/docs/howto/ssi.html#configuringyourservertopermitssi

We are using:
<head>
<title>IP</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script type="text/javascript">

        var IP = '<!--#echo var="REMOTE_ADDR" -->';

        document.write("IP: " + IP);
        document.write("<BR>");

        //ip = "10.192.0.111";
        if (IP.match(/10.192.0.\d{1,3}/)) {
                document.write("matches");
        } else {
                document.write("doesn't match");
        }

</script>
</head>

We are viewing it using Firefox and IE, when we connect to some remote
servers using this system it displays fine. Just in our case the variable
is always empty.

Any ideas?

-- 
Simon Bryan
IT Manager
OLMC Parramatta
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to