• RSS
  • Twitter
  • FaceBook

Security Forums

Log in

FAQ | Search | Usergroups | Profile | Register | RSS | Posting Guidelines | Recent Posts

html - log every ip that entering my website?

Users browsing this topic:0 Security Fans, 0 Stealth Security Fans
Registered Security Fans: None
Post new topic   Reply to topic   Printer-friendly version    Networking/Security Forums Index -> Programming and More

View previous topic :: View next topic  
Author Message
DaMonster
Guest






PostPosted: Sat Sep 07, 2002 12:13 pm    Post subject: html - log every ip that entering my website? Reply with quote

question: how can i log every ip that entering my website? can this be done by a simple html script ??? logging i mean to write its ip on a *.txt file automatically.
Thanks.
Back to top
ShaolinTiger
Forum Fanatic
Forum Fanatic


Joined: 18 Apr 2002
Posts: 16777215
Location: Kuala Lumpur, Malaysia

Offline

PostPosted: Sat Sep 07, 2002 1:12 pm    Post subject: Reply with quote

Not unless your web server supports one of the following:

SSI's (Server Side Includes)
PHP
CGI
ASP
JSP
CFM

Or any other server side technology.
Back to top
View user's profile Send private message Visit poster's website
DaMonster
Guest






PostPosted: Sat Sep 07, 2002 2:34 pm    Post subject: Reply with quote

i c, maybe cgi or asp,
Thanks Smile
Back to top
gigsvoo
Just Arrived
Just Arrived


Joined: 16 Aug 2002
Posts: 0


Offline

PostPosted: Thu Sep 12, 2002 4:31 am    Post subject: Reply with quote

Make it otherwise if your webserver can have IP logging features should do the same tricks... Laughing
Back to top
View user's profile Send private message
ComSec
Trusted SF Member
Trusted SF Member


Joined: 26 Jul 2002
Posts: 16777215


Offline

PostPosted: Sun Sep 15, 2002 2:46 am    Post subject: Reply with quote

i have not tested this....might be worth a try ! picked it up from neworder
sorry dont have full link i had several pages open and forgot the copy it

Showing the IP address to visitor of the website

If you have a site , you may wish to show the ip address of the visitors who view your webpage. To do so you may include following script in the HTML code of your webpage. This script was made available to me by my close friend and is surprisingly same as available on http://www.ankitfadia.com/ip.htm

<HTML>
<BODY>
<SCRIPT>
var ip = new java.net.InetAddress.getLocalHost();
var ipStr = new java.lang.String(ip);
document.writeln(ipStr.substring(ipStr.indexOf("/")+1));
</SCRIPT>
</body>
</HTML>
Back to top
View user's profile Send private message Visit poster's website
ShaolinTiger
Forum Fanatic
Forum Fanatic


Joined: 18 Apr 2002
Posts: 16777215
Location: Kuala Lumpur, Malaysia

Offline

PostPosted: Sun Sep 15, 2002 2:49 am    Post subject: Reply with quote

It doesn't work, just tried it.

You need server side scripting to get an IP properly..
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   

Post new topic   Reply to topic   Printer-friendly version    Networking/Security Forums Index -> Programming and More All times are GMT + 2 Hours
Page 1 of 1


 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Community Area

Log in | Register