prevent download source file from the website
-
Hi, Currently I am facing the problem for preventing from othrs download the source file in the website. I've done some setting to the web.config, the code look like this : somehow i still can key in the correct path and download the database form the Website. May I know is there anything wrong with the code or some other ways to do this. And is that web.config and machine.config is the same thing? Thanks in advanced.
-
Hi, Currently I am facing the problem for preventing from othrs download the source file in the website. I've done some setting to the web.config, the code look like this : somehow i still can key in the correct path and download the database form the Website. May I know is there anything wrong with the code or some other ways to do this. And is that web.config and machine.config is the same thing? Thanks in advanced.
Your XML doesn't show up. You need to put < and > in place of the < and > in order for it to work.
"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar The Second EuroCPian Event will be in Brussels on the 4th of September
-
Hi, Currently I am facing the problem for preventing from othrs download the source file in the website. I've done some setting to the web.config, the code look like this : somehow i still can key in the correct path and download the database form the Website. May I know is there anything wrong with the code or some other ways to do this. And is that web.config and machine.config is the same thing? Thanks in advanced.
-
the database seem like the only prob i m facing nw.. the file.aspx.vb is already forbidden but the file.mdb is downloadable... :confused::eek::doh:
You will need to register the .mdb file extension to be handled by the asp.net ISAPI extension within IIS. At the moment IIS will just serve the file.
-
You will need to register the .mdb file extension to be handled by the asp.net ISAPI extension within IIS. At the moment IIS will just serve the file.
hi, i've added the .mdb extension the the aspnet_isapi.dll ... somehow i still can download the database file from the net... confirmation --> 1. or just p.s my database store in "secure" folder 2. Do i store this xml to machine.config ? is that the same thing?
-
hi, i've added the .mdb extension the the aspnet_isapi.dll ... somehow i still can download the database file from the net... confirmation --> 1. or just p.s my database store in "secure" folder 2. Do i store this xml to machine.config ? is that the same thing?
I've found getting the handlers working is a bit fiddly. I would suggest you use the second version, as I have not yet worked out how the paths actually work. You need to put the configuration in the web.config of the asp.net application.