I read a letter in a magazine that told a story of links to a page for a free CD. They were getting lots of requests from unauthorized links.

Here is an example of one way of preventing that happening.

The page that I want to get to is:- try it.

There are two other pages involved - have a look at then - then view source. this is the page that says "get stuffed - hehehehe. this is the correct place to start from.


The code for "hereisthepage.asp"


itCameFrom = UCase(Request.ServerVariables("HTTP_REFERER"))

CharPos = Instr(1, itCameFrom, "PROPERPLACE.HTM")
if CharPos = 0 then
	Response.Redirect "wrongplace.htm"
end if

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
<TITLE>The page you wanted</TITLE>


This is the page that you wanted
you got here legitimately
Now there - aint that simple    !!