In one of the templates I used...
<!--#echo var="REMOTE_ADDR"-->
which runs in search.cgi
server does not do server-parsed on cgi, so I get
<!--#echo var="REMOTE_ADDR"--> as output in webpage
to be more precise I am trying to use...
<script LANGUAGE="JavaScript"><!--
var userip = "<!--#echo var="REMOTE_ADDR" -->";
document.write(userip);
//--></script>
I modified .htaccess in search.cgi directory to ...
Options +ExecCGI
AddHandler server-parsed .cgi .pl
AddHandler cgi-script .cgi .cgi
Can Javascript get remote IP address w/o SSI?
Is their any linksql variable to get ip address?
if none... then can above .htaccess settings be used to get IP address, as currently either it does not process SSI in cgi or it shows source code of CGI w/o processing script?
<!--#echo var="REMOTE_ADDR"-->
which runs in search.cgi
server does not do server-parsed on cgi, so I get
<!--#echo var="REMOTE_ADDR"--> as output in webpage
to be more precise I am trying to use...
<script LANGUAGE="JavaScript"><!--
var userip = "<!--#echo var="REMOTE_ADDR" -->";
document.write(userip);
//--></script>
I modified .htaccess in search.cgi directory to ...
Options +ExecCGI
AddHandler server-parsed .cgi .pl
AddHandler cgi-script .cgi .cgi
Can Javascript get remote IP address w/o SSI?
Is their any linksql variable to get ip address?
if none... then can above .htaccess settings be used to get IP address, as currently either it does not process SSI in cgi or it shows source code of CGI w/o processing script?