Re: Are personalized URLs a danger to my Search Engine inclusion?



I wanted to thank you for your hint, Miguel, HTTP-Referer is exactly
what I was looking for. I found the information on how to use it
several places on the internet, then searched for information to let me
add unique referrers to a text file. Here's what I ended up with:

<%
'Create Our ServerVariables and Store them to a variable
site = Request.ServerVariables("HTTP_REFERER")
if site>""then
site = site & "," & thispage
dim fs,f
set fs=Server.CreateObject("Scripting.FileSystemObject")
set f=fs.OpenTextFile(Server.MapPath("testread.txt"),1,true)
do while f.AtEndOfStream<>true and site>""
testitem=f.ReadLine: if testitem=site then site=""
loop: f.Close
if site>"" then
set f=fs.OpenTextFile(Server.MapPath("testread.txt"),8,true)
f.WriteLine(site): f.Close: site=""
set f=Nothing: set fs=Nothing
end if
end if
%>

I'm sure I could make this routine above even better, but it works, so
I'm satisfied. For example, I could have used EXIT DO after site=""
instead of using (and site>"") in the line above it, but I've always
hesitated to use exit do, because on occasion, they have done funny
things in other programs.

Having found the statements required to let me create this file, I went
on to set up a similar file to keep track of first names requested, and
while making those changes, also changed it so that if someone uses the
www.mazes.com/asp-maze/godloves.asp?firstname=john style of
personalized URL, their name does not show up in the text or headings
of the page. So, once in awhile, i can glance at the names file to see
what kinds of interesting names have been a-maze-d.

John

.



Relevant Pages

  • Re: Autojen m?r? Kiinassa/Usa: ssa
    ... This statement does not do what you expect it to do, it leads to an exit ... at the first execution. ... Hint 2: The data file shown does not appear to consist of lines starting ... integer:: eof ...
    (comp.lang.fortran)
  • Re: Quit from TaskManager
    ... John Williams (News) wrote in message ... Does anyone have any hint as to what vital bit I've missed out which ... I assume you're not responding to Poll events 17 and 18 (the user message ... you exit when Message_Quit is received. ...
    (comp.sys.acorn.programmer)
  • Re: OT: Attention Wal-Mart Shoppers
    ... normzauchin wrote: ... You really can't take a hint, ... the exit to get you out of the store. ... More unprovoked rage from Raging Norm. ...
    (alt.vacation.las-vegas)
  • Re: Autojen m?r? Kiinassa/Usa: ssa
    ... This statement does not do what you expect it to do, it leads to an exit ... Hint 2: The data file shown does not appear to consist of lines starting ...
    (comp.lang.fortran)