Return CGI Library
This is a fairly simple tool which allows you to generate A link to a random page.
Using this tool is very simple. You need to create a file that has the "random" URLS. The gadget will pick ONE LINE from this file.
The magic line to include in your HTML page is:
<a href="/cgi-bin/random2/urltofile"> random link </a>
The random text file:
/gadgets/
/www/
/index.html
Example:
Here is the random link.
Here is the file of links.
By url to file, I mean the path that you have to type in to get the server to give you the file.
This could be ~tbrown/some/dir/filename, or /some/dir/filename if you're running a virtual server.
The above two examples would be coded as:
<a href="/cgi-bin/random2/~tbrown/some/dir/filename"> random link </a>
<a href="/cgi-bin/random2/some/dir/filename"> random link </a>
It seems that the browsers (at least Netscape 1.x) handle different types of links differently. In the above file, the
http://www.baremetal.com link is the only one that the browser shows the true url for. With the others, the browser shows the URL as
/cgi-bin/random2/gadgets/random2.rnd.
Oops. I think this is probably a server issue. The server handles the redirects internally when it can. The complete URLS have to go
back to the client to be interpreted, so tht's why the URL gets updated on the clients screen. [We're using apache here.]
|