file restriction - Forms authentication

From: Ed (anonymous_at_discussions.microsoft.com)
Date: 05/31/04


Date: Mon, 31 May 2004 12:41:03 -0700

Hi,

I'm have an asp.NET project, and I'm using Forms authentication method. I was wondering if there is a way to deny access to files that are not .aspx...ie: Someone who tries to access somepage.aspx is prompted for a username and password. However, if someone tries to access somefile.pdf, he can do this without authentication.

Any Suggestions?

Thanks,

Ed