html - log every ip that entering my website?

Networking/Security Forums -> Programming and More

Author: DaMonster PostPosted: Sat Sep 07, 2002 12:13 pm    Post subject: html - log every ip that entering my website?
    ----
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.

Author: ShaolinTigerLocation: Kuala Lumpur, Malaysia PostPosted: Sat Sep 07, 2002 1:12 pm    Post subject:
    ----
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.

Author: DaMonster PostPosted: Sat Sep 07, 2002 2:34 pm    Post subject:
    ----
i c, maybe cgi or asp,
Thanks Smile

Author: gigsvoo PostPosted: Thu Sep 12, 2002 4:31 am    Post subject:
    ----
Make it otherwise if your webserver can have IP logging features should do the same tricks... Laughing

Author: ComSec PostPosted: Sun Sep 15, 2002 2:46 am    Post subject:
    ----
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>

Author: ShaolinTigerLocation: Kuala Lumpur, Malaysia PostPosted: Sun Sep 15, 2002 2:49 am    Post subject:
    ----
It doesn't work, just tried it.

You need server side scripting to get an IP properly..



Networking/Security Forums -> Programming and More


output generated using printer-friendly topic mod, All times are GMT + 2 Hours

Page 1 of 1

Powered by phpBB 2.0.x © 2001 phpBB Group