in reply to (OT) Protecting Content
If you are willing to feed the content dynamicaly through a CGI script, then the CGI script can check the cookie and push the file to the client. The content files don't need to be visible through the web server for this to work.
You can even make the URL look like a static file by using the path info after the URL to the script.
http://www.example.com/cgi-bin/content.cgi/foo.txt
$cgi->path_info eq '/foo.txt'
|
|---|