Hi, I'm new to mod_perl and I'm having some difficulty understanding a few things. I'd like to write an Apache module which authenticates a request based on the URL. I only want the module to deny invalid requests and allow valid requests to be processed as normal.
A more specific example would be like: Request URL: http://myhost.com/REALLY-SECURE-TOKEN/file2download Module logic: if REALLY-SECURE-TOKEN is valid, allow the request to continue - else, stop request with an error External application logic: if request got here without error then find the file2download and write it to the output stream - else, show custom error I think the best way to do this is something like: 1) Write a module which evaluates the URL and places a variable in the request's scope 2) Use mod_rewrite to evaluate the newly set variable and pass execution to the proper place with any error code that might have been placed in the variable I've been reading books, howto's, and on-line documentation for the past two days and I still have no idea where to begin. Any advice would be greatly appreciated. Thanks, Ty