want to allow or deny an URL based on a timestamp

Michael S. Fischer michael at dynamine.net
Tue Aug 12 18:23:07 CEST 2008


Nearly every modern webserver has optimized file transfers using
sendfile(2).  You're not going to get any better performance by shifting the
burden of this task to your caching proxies.

--Michael

On Tue, Aug 12, 2008 at 12:53 AM, Sascha Ottolski <ottolski at web.de> wrote:

> Hi all,
>
> I'm certain that it's possible, but am not sure how to do it: I want to
> let my application create "encrypted" URLs, that are valid only for a
> specific amount of time. I guess with the help of embedded C and
> manually constructed hash keys this should be doable. Now I'm wondering
> if may be someone already has done something like this, or as other
> ideas to achieve this?
>
> My idea is basically inspired by a lighttpd module:
> http://trac.lighttpd.net/trac/wiki/Docs:ModSecDownload
>
> The workflow would be something like
>
> - "decrpyt" incoming URL
> - rewrite URL, extract timestamp
> - if not in range, send 404 (or what seems appropriate)
> - if timestamp is ok, set hash key
> - deliver object from cache or pull from backend
>
>
> Thanks for any pointer,
>
> Sascha
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at projects.linpro.no
> http://projects.linpro.no/mailman/listinfo/varnish-misc
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20080812/00830471/attachment-0001.html>


More information about the varnish-misc mailing list