Quantcast
Channel: Security
Viewing all articles
Browse latest Browse all 1881

Virtual Directory IP Security

$
0
0

Hi,

I am trying to script up the creation of a website and its pretty much complete. However I have the need to restrict access to one virtual directory, which is fine and I have scripted this. However the config for this then gets stored in a web.config file in a code directory (see below)

<ipSecurity>

<add ipAddress="a.a.a.a" allowed="true" />
<add ipAddress="x.x.x.x" subnetMask="255.255.0.0" allowed="true" />
<add ipAddress="n.n.n.n" allowed="true" />


</ipSecurity>

I want to put the config in the applicationhost.config file, to remove the need for the web.config file.

Is it possible to either

  • manually have the Virtual directory ipsecurity settings in the applicationhost.config
  • script the ipsecrutity settings and have then saved to the applicationhost.config

The problem is that the web.config files get removed on a code deployment, and the ip restrictions can change ac sites and servers. Any help would be greatly appreciated.


Viewing all articles
Browse latest Browse all 1881

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>