Ask a Question related to PERL Miscellaneous, Design and Development.
-
Joe #1
display client ip address on web page
I need help writing a script that will display a web client's ip
address on my web page.
I am running apache on linux. I have perl installed.
Joe Guest
-
Retrieving REAL client ip address
Hello, I was wondering if there is a way using coldfusion with java, to get the real client ip address even if he/she is behind a proxy or using... -
Getting client IP address
Anyone know how to get the client IP address? As part of the authentication/stats/logging system, we'd like to have all IPs stored in the... -
How do I grab the client IP address in my Web service
Hi, I need to grab the ip address of the computer making the call to my Web Service. In my .asmx I tried System.Web.HttpRequest.UserHostName and... -
IP Address display in Application log for MX
In CF5, the IP Address of the user that generated a page error is listed in the Application log along with the description of the page error. This... -
Outlook address display
When you send a mass mailing (like my newsletter) to a group of addreses, the recepient receives it together with a long list of all other recepients... -
Dan Wilga #2
Re: display client ip address on web page
In article <a911e5d5.0307221130.11f88871@posting.google.com >,
[email]joe_stevensen@yahoo.com[/email] (Joe) wrote:
It doesn't even have to be a Perl script, if you have your HTML pages> I need help writing a script that will display a web client's ip
> address on my web page.
>
> I am running apache on linux. I have perl installed.
set up as server parsed (for server side includes). Just include this
code:
<!--#echo var="REMOTE_ADDR"-->
See: [url]http://httpd.apache.org/docs/howto/ssi.html[/url] for more info.
(Sorry for the off-topic answer, but in this case it's justified, IMHO,
since the easiest answer is not to use Perl.)
--
Dan Wilga [email]dwilga-MUNGE@mtholyoke.edu[/email]
** Remove the -MUNGE in my address to reply **
Dan Wilga Guest
-
Steve in NY #3
Re: display client ip address on web page
On 22 Jul 2003 12:30:04 -0700, [email]joe_stevensen@yahoo.com[/email] (Joe) wrote:
#!/usr/local/bin/perl>I need help writing a script that will display a web client's ip
>address on my web page.
>
>I am running apache on linux. I have perl installed.
print "Content-type: text/plain","\n\n";
$remote_host = $ENV{'REMOTE_HOST'};
print "You are visiting from ", $remote_host, ". ";
I just copied and pasted the above from here:
[url]http://www.oreilly.com/openbook/cgi/ch01_06.html[/url]
you can add any tags, like this:
print "<html><body>Hi there</body></html>";
Steve in NY Guest
-
Steve in NY #4
Re: display client ip address on web page
That will teach me to post before thinking...thanks Todd ;-)
On Tue, 22 Jul 2003 20:14:49 GMT, "Todd de Gruyl" <todd@tdegruyl.com> wrote:
>On Tue, 22 Jul 2003 16:03:41 -0700, Steve in NY wrote:
>>...>> print "Content-type: text/plain","\n\n";>>> print "<html><body>Hi there</body></html>";
>of course, if you want that to display as html, change the content-type to
>text/html, instead of text/plainSteve in NY Guest
-
Tintin #5
Re: display client ip address on web page
"Joe" <joe_stevensen@yahoo.com> wrote in message
news:a911e5d5.0307221130.11f88871@posting.google.c om...It isn't possible to determine the IP address the users to your website.> I need help writing a script that will display a web client's ip
> address on my web page.
>
> I am running apache on linux. I have perl installed.
The best you can do is determine the address of where the request has come
from (or at least, claims to have come from).
Tintin Guest



Reply With Quote

