Author: ramiramilu | Posted on: 8/12/2009 4:44:46 AM | Views : 384

Hello All,
I kept a test.txt in the fallowing manner : www.domain.com/test.txt
I want none of the user to visit it by typing the above link, but unfortunately when they type the link in browser they are able to access the file.


I tried different methods to hide,
1) to place the test.txt outside the working directory, in that case i am not able to access the file. And my requierment needs it to be in the root directory. so i left out that option.
2) to restrict that particular folder access by using web.config file (deny users="?"), but when i uploaded the files to web server IIS using filezilla, it is not working and users are able to access the test.txt by typing the above mentioned URL.



Now I want to auto redirect the  www.domain.com/test.txt  to  www.domain.com/error.aspx. So that when ever user enters www.domain.com/test.txt he should be taken to a error page without displaying the actu ...

Go to the complete details ...