[Javascript] IPAddress

Carl Adler carl at carladler.org
Fri Mar 21 13:25:38 CST 2003


But it certainly would not hurt for the person who raised the issue to try
it.
Right?

Carl

PS: Thanks for the lesson I did not know much of this.

> From: "David Lovering" <dlovering at gazos.com>
> Reply-To: "[JavaScript List]" <javascript at LaTech.edu>
> Date: Fri, 21 Mar 2003 11:48:15 -0700
> To: "[JavaScript List]" <javascript at LaTech.edu>
> Subject: Re: [Javascript] IPAddress
> 
> ... However, even Apache Servers can opt to disable support for SSI,
> depending on the values within their respective httpd.conf files.
> 
> For SSI to work on a given server (Apache or otherwise), several
> conditions must be met:
> 
> (1)    There must be an 'AddHandler' directive of the proper sort
> underneath the desired ServerName:
> 
> AddHandler    server-parsed .shtml
> 
> (2)    There must be a SetHandler directive that points to a given
> directory where such scripts can live:
> 
> <Directory "/home/secure/pub/shtml">
> Options +Includes
> SetHandler server-parsed
> </Directory>
> 
> (3)    For broad SSI support, the Options list noted above must NOT
> include the following directive:
> 
> IncludesNOEXEC
> 
> If it does, it will effectively disable the 'exec' functions,
> which constitute about 80% of the SSI suite
> 
> (4)    Lastly, there must be an AddType directive which enables
> recognition of the desired shtml extension:
> 
> AddType text/html .shtml
> 
> If ANY of these are not done, or done in the wrong order, then SSI's won't
> work at all, or will work with severe restrictions.  I might add that the
> newest implementations of Apache have these features turned OFF by
> default -- no doubt a consequence of the heightened security consciousness
> that the current world environment has engendered.
> 
> -- Dave Lovering
> 
> ----- Original Message -----
> From: "Carl Adler" <carl at carladler.org>
> To: "[JavaScript List]" <javascript at LaTech.edu>
> Sent: Friday, March 21, 2003 4:51 AM
> Subject: Re: [Javascript] IPAddress
> 
> 
>> If your server supports SSI as mine does you can get the IP Address using
>> .shtml of the client by the method I posted earlier. SSI is or at least
> was
>> available on Apache Servers and maybe others. It is really quite useful.
>> Carl
>>> From: "andy susanto" <andy78 at centrin.net.id>
>>> Reply-To: "[JavaScript List]" <javascript at LaTech.edu>
>>> Date: Fri, 21 Mar 2003 14:57:49 +0700
>>> To: <javascript at LaTech.edu>
>>> Subject: Re: [Javascript] IPAddress
>>> 
>>> hai,
>>> 
>>> what  i need is IPAddress Client. If i use .shtml can i show that on
>>> Computer client ?
>>> 
>>> TIA,
>>> 
>>> andy
>>>> Message: 6
>>>> Date: Thu, 20 Mar 2003 16:24:24 -0700
>>>> From: "David T. Lovering" <dlovering at gazos.com>
>>>> Subject: Re: [Javascript] IPAddress
>>>> To: "[JavaScript List]" <javascript at LaTech.edu>
>>>> Message-ID: <3E7A4D51.50C62C03 at gazos.com>
>>>> Content-Type: text/plain; charset="us-ascii"
>>>> 
>>>> 
>>>> Right.  The IP address that is reported is that of the client, but the
>>>> script only works on the server via one of those sexy <!exec> calls.
>>>> (I suspect it wouldn't be too hard to subvert the routines to get the
>>>> IP of the server as well, but I'm notso curious as to want to invest
>>>> the time to figure out how to do it.)
>>>> 
>>>> Glad you mentioned it.
>>>> 
>>>> -- Dave Lovering
>>>> 
>>>> Carl Adler wrote:
>>>>> 
>>>>> I believe, but do not know, that this is Server Side JavaScript only.
>>>>> Carl
>>> 
>>> 
>>> _______________________________________________
>>> Javascript mailing list
>>> Javascript at LaTech.edu
>>> https://lists.LaTech.edu/mailman/listinfo/javascript
>>> 
>> 
>> _______________________________________________
>> Javascript mailing list
>> Javascript at LaTech.edu
>> https://lists.LaTech.edu/mailman/listinfo/javascript
>> 
> 
> 
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
> 



More information about the Javascript mailing list