At 10.46 29/01/2003 -0600, Randall Fish wrote:
Thanks Gabriele,
No worries.
Well ... with Apache you could simply use Rewrite. I don't know how IIS works, but you could workaround like this. You have an ASP script whose role is simply to explode the content of a requested document. For instance your documents have an 'id' and stay in a hidden directory (out of the document root) on IIS.How do I 'allow the document retrieval only to the user agent used by htdig'?
Given an id, this script just check whether the id is valid and flushes the content to the end user. Only if the user performed a research, right? So you must check the request against the referrer URL (for htsearch or your PHP script). You have to allow htdig to index that document as well, and you can do this by checking the user agent. So ... if one of these conditions are satisfied, you return the actual document, otherwise you can issue a 404 not found error or a redirect.
I don't know how to do this in ASP; I have easily done this in PHP (it's just a few lines of code).
My search page is an asp script that calls a PHP script that calls the htsearch on the Apache server.
Ahahahahhaha! Must be pretty fast! <just kidding!> :-)
This solution might work for you.I have found that getting the referring URL (or referer) is not an exact science. I would like to allow only my 'gateway- script' and HTDig to access the documents.
Ciao ciao
-Gabriele
--
Gabriele Bartolini - Web Programmer - ht://Dig & IWA Member - ht://Check maintainer
Current Location: Prato, Tuscany, Italia
[EMAIL PROTECTED] | http://www.prato.linux.it/~gbartolini | ICQ#129221447
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
htdig-general mailing list <[EMAIL PROTECTED]>
To unsubscribe, send a message to <[EMAIL PROTECTED]> with a subject of unsubscribe
FAQ: http://htdig.sourceforge.net/FAQ.html

