View Single Post
Old 18-08-2004, 22:50   #1
altis
Inactive
 
altis's Avatar
 
Join Date: Jun 2003
Location: Warrington ntl:81304 Altitude: 12m (and falling)
Posts: 4,499
altis has a nice shiny staraltis has a nice shiny star
altis has a nice shiny staraltis has a nice shiny staraltis has a nice shiny staraltis has a nice shiny staraltis has a nice shiny staraltis has a nice shiny staraltis has a nice shiny staraltis has a nice shiny staraltis has a nice shiny staraltis has a nice shiny staraltis has a nice shiny staraltis has a nice shiny staraltis has a nice shiny star
Remote IP addy on page?

How can I get the remote IP address onto an HTML page?

I have discovered that, if I change the filename to index.shtml, this switches on SSI and I can use something like the following:

Code:
<a href="mailto:<!--#echo var='REMOTE_ADDR'-->@mysite.co.uk">
This works fine but it generates the address in the usual xx.xx.xx.xx format. I would prefer it as an 8-digit hexadecimal number so as not to put peeps off.

This code also has a problem with NTLs transparent caches since it reports their IP and not the user's. I seem to remember Sir Robin pointing out that the new caches were configured incorrectly.

Any ideas?
altis is offline   Reply With Quote