clipped from: bignosebird.com   
The Apache Environment variable, HTTP_REFERER is used above to show you the full URL of the page that brought you here. In the example above, Extended SSI (XSSI) logic was used to see if there was a value in the HTTP_REFERER variable. This allows you to handle situations such as bookmarks or browsers that do not report a value for the HTTP_REFERER. Let's look at the source code:

<!--#if expr="${HTTP_REFERER} =/http/" --> <B>You came from <!--#echo var="HTTP_REFERER"--></B> <!--#else --> <B>I don't know where you came from</B> <!--#endif -->

I don't have XSSI, Can I still have a back button?
Of course. With any SSI compatible server you can simply do this:

<A HREF="<!--#echo var="HTTP_REFERER"-->">BACK</A>