Prevent read and write permissions to app.config file

 
I started thinking about an option of restricting the read/write permission on my app.config file. Oops, as a typical programmer. I am things "inside the box" in the dotnet environment.

 
 1.jpg

Let me clear out the exact problem. Can we restrict the programmer to modify the config file? Because, all my connections are sitting in my config file and I would like to keep it safe.
 
Afterwards came out from Dotnet world and started thinking as a windows user.
 
It's really too simple, you can achieve the same through your windows Security property.Right click on the file -> Properties -> Security -> Click on the specific user and click the edit button, you can change the options by selecting or deselecting the check boxes.
 
Cheers,
Venkatesan Prabu .J