| ★ wanayoo — archive 1999 http://getscript.com/footstep.html | Nouvelle recherche | Portail wanayoo |
![]() Support Our Sponsor! Company Menu CGI/Perl Scripts CGI Installation & Customization Tech Forums Message Board Hosting Service Freebie Scripts Tutorials Other Services CGI / Perl Bookstore ![]() [Click on Book] |
![]() [Home] [Company] [Hosting] [Scripts] [Support] [Forums] [Purchase] [Freebies] [Tutorials] [Services] [Advertising] Last Updated: Tuesday, 08-Aug-2000 10:55:33 EDT This is a good script if you wish to see what pages a particular visitor viewed while on your site. The command line usage is ... http://www.yourdomain.com/cgi-bin/footstep.pl?ip.address Of course change the path to reflect the location of the script. Be sure to enter the ? (question mark) after the script's URL to tell the script everything after the ? is the visitor's ip address/domain. Now the important part .... the ip address/domain! It's recommended that you first download and install the access log script first. That script provides the REMOTE_HOST recorded by your server log. If you server has the "reverse DNS lookup" turned off (which many are doing these days) you'll see something like 206.244.135.142 and if the "reverse DNS lookup" is turned on, you'll most likely see the domain name version, such as ... host045.jerseycity.interactive.net As a side note, although your server may have the "reverse DNS lookup" turned on, you'll see about 20% of all hits from numeric ip addressing. Not all IP addresses on the net have a domain name assigned to it.
Step 2 - Change The Variables Enter the PHYSICAL Path To Server Access Log and not the VIRTUAL. I define PHYSICAL as being the path on your server and not the web URL which is designated with an http:// $serverlog='/public/logs/htaccess_public'; If you didn't enter the REMOTE_HOST as the QUERY_STRING, the script will use your IP address instead. So if you don't put the ? (question mark followed by the ip address, you'll see your footsteps if ($ENV{'QUERY_STRING'} ne "") {
$search4=$ENV{'QUERY_STRING'};
} else {
$search4=$ENV{'REMOTE_HOST'};
}
Optional Security Function
Place this snippet at the top of all your script site's maintenance scripts that you don't want others to have access in running. A good example of using this script would be at the top of the errors.cgi script or your wwwadmin.pl script # Place This Snippet At Top of Sensite Scripts
$logfile ="/home/usr/http/dbasics/logon.txt";
open(FILE,"$logfile") || die $!;
$logon=<FILE>;
close(FILE);
if ($ENV{'REMOTE_HOST'} ne $logon) { exit; }
# End of Snippet
| |||||||||||||