I've discussed a CGI exit script in my WebTechniques Perl column, including why it is necessary, and how to set up the site for it.

Oddly enough, I also use my CGI "exit" script to track links I place on slashdot and other public arenas to see if anyone follows them. For example, on slashdot, I may code in a story like:

For more information about my legal case, visit <a href="http://www.stonehenge.com/cgi/go/http://www.lightlink.com/for +s/">the friends of randal schwartz website</a>.
which then shows up as a link like:
For more information about my legal case, visit the friends of randal schwartz website.
And clicking on that link (try it) takes you to www.lightlink.com/fors/, while first noting it on my server, so I can see if this link I've so carefully typed was of interest to anyone, or if I was just wasting my breath. Obviously, I don't need to code inward links to my site this way... only links from a public site to some other public site. It's a nice way of knowing if I'm just babbling. {grin}

-- Randal L. Schwartz, Perl hacker


In reply to RE: Re: Tracking user exits by merlyn
in thread Tracking user exits by pliny

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.