WARNING: This is an Archive - Try the New TestMy.net
Home
 
Welcome, Guest. Please login or register.

 
  spcr
» Home » IP address display
    
  Home    Help    Search    Login    Register  
 
News : smitten remember, testmy.net loves you!  Show your love back and tell your friends about our great community!  We rely 100% on word of mouth advertising, so if you find that the site is useful, tell a friend!  ~ Thanks!  cheesy May 24, 2012, 12:13:54 PM
old.testmy.net forums  |  Main Forum  |  HELP!  |  HELP! With Other Stuff  |  Topic: IP address display Advanced search
  0 Members and 1 Guest are viewing this topic. « previous next »
Pages 1 Go Down
Author
Topic: IP address display  (Read 1855 times)
scatrbrain
Jr. Member
*
Offline Offline

Gender: Male
Posts: 34



View Profile WWW
« on: October 29, 2004, 02:30:52 AM »

Well this effort is probably futile but ill try anyway ha ha.. On some of your posts you have a way of displaying my IP address... I have researched this and found a couple ways of doing it, mostly with only netscape and java script, another way i found was using SSI but the only code I can find is to be used when your visitors are submitting a form..I just simply need to display this information JUST like you guys do.. this would be very handy for me to use on my cam website to try to scare the pervs and the pedophiles away by showing there IP address BEFORE They send me there sick messages regarding my kids.... Yes i know.. just turn the damn cam off... .but i been doing it for 5 years and I dont want to give it up yet but I guess I will if worse comes to worse... anyway any help would be appreciated.. If you dont want to post the info in the forum send me a pm or mail me at the address i have registered at testmy.net or contact me at bob@kansaslife.net
Thanks Very Happy
Logged

Dual boot Win XP Pro/2000 Pro - Intel Pentium 4 (3.2) - 1 GIG DDR2 RAM - Mainboard = ABIT UGURU AA8XE (3RD eye - PCI Express - DDR2 - 800FSB)  - 80 GIG ATA HD

 
luwigie
TMN Friend
*
Offline Offline

Posts: 216



View Profile WWW
« Reply #1 on: October 29, 2004, 05:43:01 AM »

I have this as my 404 error page...

[code:1]The page that you requested (
<!--#echo var="REQUEST_URI" -->) isn't here.
Your IP Address is:<!--#echo var="REMOTE_ADDR" -->
Your Browser Version is:<!--#echo var="HTTP_USER_AGENT" -->
This Site is:<!--#echo var="HTTP_HOST" -->

<!--
                                                                                                                                                                                                                                                                                                                                                                                                                                         
-->

[/code:1]

That outputs all of that info.  It is an shtml file, which I know little about.  I would guess that there is pre-processing server side that must be done.

To see how that comes out, just go to http://www.litelinux.net/faskdjl  That page doesn't exist, and will bring up the 404 error page.

I would imagine that you could use the IP Adress directive to get the info you need.  This would display...  not log.  You should probably still have a firewall doing logging.
Logged
 
unstable
Full Member
*
Offline Offline

Posts: 98


View Profile
« Reply #2 on: October 29, 2004, 05:53:02 AM »

The syntax of the command is all going to depend on what you have at your disposal.

ASP? .NET? PHP? CGI?
Logged



"4 out of 5 dentists recommend supporting your local 81"
 
luwigie
TMN Friend
*
Offline Offline

Posts: 216



View Profile WWW
« Reply #3 on: October 29, 2004, 06:05:15 AM »

He could always just make a seperate frame that runs that code...  That's all that I know on this subject.
Logged
 
scatrbrain
Jr. Member
*
Offline Offline

Gender: Male
Posts: 34



View Profile WWW
« Reply #4 on: October 29, 2004, 01:39:05 PM »

hey guys, I belive all i have is PHP and CGI at IXwebhosting, i know very little about both... looks like this might be a bit over my head hu? I just havent had a use for these in the past but I would probably understand it with some explination. Thanks for you replies!!

 Very Happy
Logged

Dual boot Win XP Pro/2000 Pro - Intel Pentium 4 (3.2) - 1 GIG DDR2 RAM - Mainboard = ABIT UGURU AA8XE (3RD eye - PCI Express - DDR2 - 800FSB)  - 80 GIG ATA HD

 
luwigie
TMN Friend
*
Offline Offline

Posts: 216



View Profile WWW
« Reply #5 on: October 29, 2004, 09:44:52 PM »

http://www.allscoop.com/phpcode.php

This site seems to have something...  I am running it on my server right now.  It even tells you how to link to show an image of the info.
Logged
 
scatrbrain
Jr. Member
*
Offline Offline

Gender: Male
Posts: 34



View Profile WWW
« Reply #6 on: October 29, 2004, 09:59:27 PM »

hey thanks luwigie. I appricate that link  Very Happy
Logged

Dual boot Win XP Pro/2000 Pro - Intel Pentium 4 (3.2) - 1 GIG DDR2 RAM - Mainboard = ABIT UGURU AA8XE (3RD eye - PCI Express - DDR2 - 800FSB)  - 80 GIG ATA HD

 
luwigie
TMN Friend
*
Offline Offline

Posts: 216



View Profile WWW
« Reply #7 on: October 29, 2004, 10:17:25 PM »

I was just about to post saying that looking up the hostname would be better, as it would show those that would try to access your web cam, that they can be tracked better.  I know that if I was just some web browser, I would be more concious of where I went if it said blah.city.isp.tld rather than just the four octets of the IP address...

I found this in the mean time though: http://www.phpaddict.com/forum3/191.html

A working example of this is here

I would imagine that you could put in a frame to run this, or just insert it into an already PHP page.

Edit: if you look at the source for the two PHP scripts that I have posted, you can pretty easily figure out the required directives, and write up your own combination for a page displaying that infomation.
Logged
 
Print  Pages 1 Go Up
old.testmy.net forums  |  Main Forum  |  HELP!  |  HELP! With Other Stuff  |  Topic: IP address display « previous next »
Jump to:  

    


 

 

 

© 2007 testmy.net - Contact - Legal - This is an older version: Try Bandwidth Speed Test v12