Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. prevent download source file from the website

prevent download source file from the website

Scheduled Pinned Locked Moved ASP.NET
databasehelpquestion
7 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • X Offline
    X Offline
    XpR diGy
    wrote on last edited by
    #1

    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.

    C X 2 Replies Last reply
    0
    • X XpR diGy

      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.

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • X XpR diGy

        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.

        X Offline
        X Offline
        XpR diGy
        wrote on last edited by
        #3
        X 1 Reply Last reply
        0
        • X XpR diGy
          X Offline
          X Offline
          XpR diGy
          wrote on last edited by
          #4

          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:

          U 1 Reply Last reply
          0
          • X XpR diGy

            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:

            U Offline
            U Offline
            User 642242
            wrote on last edited by
            #5

            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.

            X 1 Reply Last reply
            0
            • U User 642242

              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.

              X Offline
              X Offline
              XpR diGy
              wrote on last edited by
              #6

              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?

              U 1 Reply Last reply
              0
              • X XpR diGy

                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?

                U Offline
                U Offline
                User 642242
                wrote on last edited by
                #7

                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.

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups