in reply to using SSIs from database

To tell you the truth, when I first thought about an SSI'd script bringing back a referer I didn't think it would work. But when you think about it, it's no different than a CGI form checking for referer.

In short, your answer is yes. Here is what I did.

HTML

<!--#include virtual="../cgi-bin/stats/test.pl"-->
test.pl
#!/usr/bin/perl use warnings; use strict; use CGI qw/:standard/; print header; print "your page is $ENV{'HTTP_REFERER'}";
Results
your page is http://www.domain.com/cat/11/index.shtml


"Age is nothing more than an inaccurate number bestowed upon us at birth as just another means for others to judge and classify us"

sulfericacid