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:-
http://22.214.171.124/testing/hereisthepage.asp try it.
There are two other pages involved - have a look at then - then view source.
http://126.96.36.199/testing/wrongplace.htm this is the page that says "get stuffed - hehehehe.
http://188.8.131.52/testing/properplace.htm 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"> <HTML> <HEAD> <META HTTP-EQUIV="expires" CONTENT="0"> <META HTTP-EQUIV="Pragma" CONTENT="no-cache"> <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache"> <TITLE>The page you wanted</TITLE> </HEAD> <BODY> <CENTER> This is the page that you wanted <BR> and <BR> you got here legitimately </CENTER> </BODY> </HTML>Now there - aint that simple !!