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. Set Authentication for webconfig

Set Authentication for webconfig

Scheduled Pinned Locked Moved ASP.NET
csharpdatabasesecurityhelp
6 Posts 4 Posters 1 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.
  • S Offline
    S Offline
    SreejithAchutan
    wrote on last edited by
    #1

    Hi Friends, I need a help.In my application i set the connectionstrings and all settings in webconfig file.But anyone can edit teh webconfig.Is there any option to protect the webconfig editing in .net application as in access database.If anyone tries to edit the webconfig ask username and password.If the entered username and password is correct only the user have to edit the whole webconfig. Send some queries to solve it.Because after publishing alos if anyone tries he can simply edit the webconfig.So i think in this way.

    V P 2 Replies Last reply
    0
    • S SreejithAchutan

      Hi Friends, I need a help.In my application i set the connectionstrings and all settings in webconfig file.But anyone can edit teh webconfig.Is there any option to protect the webconfig editing in .net application as in access database.If anyone tries to edit the webconfig ask username and password.If the entered username and password is correct only the user have to edit the whole webconfig. Send some queries to solve it.Because after publishing alos if anyone tries he can simply edit the webconfig.So i think in this way.

      V Offline
      V Offline
      Vengatachalapathy Palanivel
      wrote on last edited by
      #2

      Does he has access to the server in which your application is hosted ? Its impossible to access the web config and machine config file from browser...

      Regards, Vengat P

      S 1 Reply Last reply
      0
      • V Vengatachalapathy Palanivel

        Does he has access to the server in which your application is hosted ? Its impossible to access the web config and machine config file from browser...

        Regards, Vengat P

        S Offline
        S Offline
        SreejithAchutan
        wrote on last edited by
        #3

        Not from the browser sir.If anyone open the config file in the application ask username and password first and if both are correct only he can edit the config files in the application.

        1 Reply Last reply
        0
        • S SreejithAchutan

          Hi Friends, I need a help.In my application i set the connectionstrings and all settings in webconfig file.But anyone can edit teh webconfig.Is there any option to protect the webconfig editing in .net application as in access database.If anyone tries to edit the webconfig ask username and password.If the entered username and password is correct only the user have to edit the whole webconfig. Send some queries to solve it.Because after publishing alos if anyone tries he can simply edit the webconfig.So i think in this way.

          P Offline
          P Offline
          Paddy Boyd
          wrote on last edited by
          #4

          You can encrypt sections of the web.config file: http://weblogs.asp.net/scottgu/archive/2006/01/09/434893.aspx[^]

          S 1 Reply Last reply
          0
          • P Paddy Boyd

            You can encrypt sections of the web.config file: http://weblogs.asp.net/scottgu/archive/2006/01/09/434893.aspx[^]

            S Offline
            S Offline
            SreejithAchutan
            wrote on last edited by
            #5

            Thanks for your kind reply sir.Actually my question is not that.We can secure the access database file by setting username and password.When anyone tries to open the file they ask password.Like that is there any way to secure my webconfig file in an application.If anyone tries to open the config file ask password(not in browser) and if teh password is correct only he can open the config file.Please i need that secureation.Not encrypting teh connectionstrings and not.

            D 1 Reply Last reply
            0
            • S SreejithAchutan

              Thanks for your kind reply sir.Actually my question is not that.We can secure the access database file by setting username and password.When anyone tries to open the file they ask password.Like that is there any way to secure my webconfig file in an application.If anyone tries to open the config file ask password(not in browser) and if teh password is correct only he can open the config file.Please i need that secureation.Not encrypting teh connectionstrings and not.

              D Offline
              D Offline
              DoctorMick
              wrote on last edited by
              #6

              If your server is properly secured you shouldn't have this problem. Make sure that only the relevant personel can log in to the server, or if it is shared, restrict write access on the web.config file to specific users using standard windows security.

              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