[WEB4LIB] Re: IP Address Detection

Mike Novak prx000 at mail.connect.more.net
Thu Nov 8 17:26:36 EST 2001


>> Anyone know of a quick, cheap, and good way to detect a site
>> visitor's IP address and, based on this, direct them to a particular
>> page on your site?
>
>Depends totally on your web server and what tools you have available.
>
>This could easily be done with PHP, Perl, Python, or server side includes.
>If the server is Apache you could accomplish this with something in the
>.htaccess or httpd.conf file, or (probably) with mod_rewrite.

Also easily done with VBscript / ASP on an NT machine running IIS... (use
Request.ServerVariables("REMOTE_ADDR") to grab the visitor's IP address)
[IIS is not the root of all evil :) ]

Mike Novak
Technology Coordinator & Reference Librarian
University City Public Library





More information about the Web4lib mailing list