View previous topic :: View next topic |
Author |
Message |
jerstra -
Joined: 15 Jul 2003 Posts: 2
|
Posted: Tue Jul 15, 2003 10:03 pm Post subject: Retrieve visitors IP Address |
|
|
If been searching my butt off on the web to get a good CGI-script
for showing a visitor his IP-address.
If tried some stuff but it wouldn't work.
I'm running the Abyss web server to test some things and i need to see,
what the ip-address is when i visit my page.
Can anyone please tell me how to make such an application.
I'd appreciate it!
Thanks
Jeroen
---------------------------------------------
it takes 20 muscles to create a happy face and 40 muscles to put on an angry face. So why tire yourself? |
|
Back to top |
|
|
CapFusion -
Joined: 18 May 2003 Posts: 617 Location: Lost in Abyss' Dungeon
|
Posted: Tue Jul 15, 2003 11:43 pm Post subject: Re: Retrieve visitors IP Address |
|
|
jerstra wrote: | If been searching my butt off on the web to get a good CGI-script
for showing a visitor his IP-address.
If tried some stuff but it wouldn't work.
I'm running the Abyss web server to test some things and i need to see,
what the ip-address is when i visit my page.
Can anyone please tell me how to make such an application.
I'd appreciate it!
Thanks
Jeroen |
You mean to show your IP like what Aprelium is doing here?
http://www.aprelium.com/ip/
Quote: |
---------------------------------------------
it takes 20 muscles to create a happy face and 40 muscles to put on an angry face. So why tire yourself? |
Ahhhh..... It not the muscle that get you tired but the source itself to cause you to have angry face. _________________ CapFusion,... |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Wed Jul 16, 2003 3:54 pm Post subject: Re: Retrieve visitors IP Address |
|
|
You don't even need a script. You can use SSI to do that.
Create a HTML page and change its extension from .html to .shtml . Next, insert in the HTML code the following code:
Code: |
Your IP is <!-- #echo var="REMOTE_ADDR" -->
|
When someone browses this .shtml page, he/she'll see his IP. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
CapFusion -
Joined: 18 May 2003 Posts: 617 Location: Lost in Abyss' Dungeon
|
Posted: Wed Jul 16, 2003 5:55 pm Post subject: Re: Retrieve visitors IP Address |
|
|
aprelium wrote: | You don't even need a script. You can use SSI to do that.
Create a HTML page and change its extension from .html to .shtml . Next, insert in the HTML code the following code:
Code: |
Your IP is <!-- #echo var="REMOTE_ADDR" -->
|
When someone browses this .shtml page, he/she'll see his IP. |
Cool....
Humm... I wonder if that what he looking for, though. _________________ CapFusion,... |
|
Back to top |
|
|
jerstra -
Joined: 15 Jul 2003 Posts: 2
|
Posted: Wed Jul 16, 2003 8:58 pm Post subject: Re: Retrieve visitors IP Address |
|
|
[quote="aprelium"]You don't even need a script. You can use SSI to do that.
Create a HTML page and change its extension from .html to .shtml . Next, insert in the HTML code the following code:
[code]
Your IP is <!-- #echo var="REMOTE_ADDR" -->
[/code]
When someone browses this .shtml page, he/she'll see his IP.[/quote]
Thanx, that was what i was looking for!
It works. |
|
Back to top |
|
|
Gatewayy -
Joined: 15 Mar 2003 Posts: 109
|
Posted: Thu Jul 17, 2003 3:53 am Post subject: |
|
|
I believe that he/she just wants to gereate a list of IPs that view the port that the web server is running on. _________________ -=Gatewayy=-
My Abyss site!
http://crashhappy.gatewayy.net |
|
Back to top |
|
|
CapFusion -
Joined: 18 May 2003 Posts: 617 Location: Lost in Abyss' Dungeon
|
Posted: Fri Jul 18, 2003 11:06 pm Post subject: |
|
|
Gatewayy wrote: | I believe that he/she just wants to gereate a list of IPs that view the port that the web server is running on. |
Couldn't you just view the the IP from the Abyss log? _________________ CapFusion,... |
|
Back to top |
|
|
Gatewayy -
Joined: 15 Mar 2003 Posts: 109
|
Posted: Mon Jul 21, 2003 5:26 am Post subject: |
|
|
what fun is that? :D
its more fun to code something or use something like awstats of course ;) _________________ -=Gatewayy=-
My Abyss site!
http://crashhappy.gatewayy.net |
|
Back to top |
|
|
CapFusion -
Joined: 18 May 2003 Posts: 617 Location: Lost in Abyss' Dungeon
|
Posted: Mon Jul 21, 2003 9:22 pm Post subject: |
|
|
Gatewayy wrote: | what fun is that? :D
its more fun to code something or use something like awstats of course ;) |
Ahhh....
Heeehe..... earlier I did not get the spirit of scripting as mention above. _________________ CapFusion,... |
|
Back to top |
|
|
|