![]() |
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 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? |
Re: Remote IP addy on page?
I'm not an expert on SSI, but if your web host has php or cgi enabled, you could use these. Fairly similar idea, you get the remote address as a variable, from there you use a conversion function to get the hex then print it back out to the page.
|
Re: Remote IP addy on page?
Quote:
|
Re: Remote IP addy on page?
I'm not sure how to do this with SSI (or if you can) as it's so old :D
This can be done very easily on PHP however, just a few line of code to tes the variables and to display them as explained in Paul's link. E.G. PHP Code:
|
| All times are GMT. The time now is 04:23. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
All Posts and Content are © Cable Forum