How can I make use of thisi ASP instruction in trying to restrict access to a page.

If Instr(Request.S erverVariable(H TTP_REFERER),"p agename.asp")

The pagename is the name of the page that containsn the form action.


<%
if Instr (Request.Server Variables(HTTP_ REFERER),"log") = "true" then
response.write( "INVALID USER")
session.content s.remove("login ")...