You are viewing this page out of context. To see it in the context it is intended please click here.
About This Page
Reply posted by john marshall on Wed 8 Jan 2003 in response to The DomBlog Template v1.1
Additional Feature: Logging referers
Jake,How about an additional feature for logging referers. Borrowing a trick from
Mike at http://notestips.com. For example create a computed for display field
on every page with a formula similar to this:
sReferer := @LowerCase(HTTP_Referer);
@If((sReferer = "") | @Matches(sReferer; "http://*swapcode.com/*") |
@Matches(sReferer; "*127.0.0.1*") | @Matches(sReferer;
"*localhost*");@Return("");"");
@NewLine + " <!-- start log referer -->" + @NewLine +
" <img src=\"" + DBURL + "logreferer?openagent&referer=" +
@URLEncode("Domino"; HTTP_Referer) + "\"
style=\"border:0px;width:1px;height:1px;\" alt=\"\" />" + @NewLine +
" <!-- stop log referer -->" + @NewLine
The "logreferer" agent just saves a document with the value of the "referer"
taken from the query string. Or in my case I save all the CGI variables as well
so I can see what browser is used.
Keep up the good work I appreciate greatly the work you and others have done
for the Domino development community.
I try in my own small way for the few Domino.Doc developers out there, at
http://swapcode.com now XHTML 1.1 compliant.
regards john marshall