User1804579801 posted
Thanks for the replay.
But I don't want to hide the folder. Actually, in my folder I have some PDF files for version 1.0 now I am releasing another latest version 1.0.1 so if the users try to access the old files
i.e., filename.1.0.pdf then a message should come "please login to the site and download the latest version of the file" this message should come instead of 404 message only when user trying to access the files from this folder any
other files or aspx pages if he is accessing then normal 404 message will come which I redirected to a specific page in web config
as below
<customErrors mode="On" defaultRedirect="pagenotfound.aspx">
<error statusCode="404" redirect="pagenotfound.aspx" /> </customErrors>
My IIS server IIS 7
Please suggest