What ASP.NET Web Config entries could limit certain file access by date and time?

Posted by Dr. Zim on Stack Overflow See other posts from Stack Overflow or by Dr. Zim
Published on 2010-04-27T19:18:14Z Indexed on 2010/04/27 19:23 UTC
Read the original article Hit count: 266

Filed under:
|
|

What entries in a web.config could allow certain files to become publicly accessible after a certain date and time? Specifically, we have these files starting with AB_.jpg where the _ could be anything. We put them in a folder on April 27th for example, but they shouldn't be accessible until April 30th at 11:59:59 PM.

I think the web.config in part works like Unix's FTP .htaccess file to define file security.

For example, this web.config entry allows directory browsing:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <directoryBrowse enabled="true" />
    </system.webServer>
</configuration>

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about web.config