Do you mean you want to deny user access based on IP address? I reviewed the articles you posted above, they are both about adding IP address to "Deny-list" instead of "Grant-list", That's not what you want?
If I misunderstood you, please feel free to let me know.
Please mark the replies as answers if they help or unmark if not.
Feedback to us
Hi, Thanks for the replying me back. I want to deny user access based on IP address but using that article i'm able to add ip address in deny list. also my requirement is to remove the ip address from deny list using vbscript or C#.net code.
As far as I know there is no direct way to remove the ip address form deny-list. Howerver you can add the ip address to allow-list, that will solve your problem in a round-about way. Besides using script, It is easy to configure ip restrictions through IIS Manager .
Configure IP Address and Domain Name Restrictions (IIS 6.0)
Hi, Thanks for the URL In my everyday process I'm already using IIS-Manager. I want to automate this task. because this logic I'm applying for the web server. My application takes 20-25 min to come up after recycling the pool. During this time someone put http
request, application keeps loading HTTP modules and application can't comes up. That'y during this time period I want to stop http hits on IIS 6.0(webserver). I' do everyday manually entering Ip address in deny-list IIS-Manager. I found script for this on
MS it is working to add ip address but i'm unable to remove ip address using that script. Thanks...
Hi, Thanks for the info and sorry for that I put my question in wrong direction. Following is the IIS Configuration on web server I have configured two application on IIS. 1) FIRST application which is CMS (content management application) 2) Feed Application
which is constantly put request for any Data update on CMS. Now CMS application is serves the multiple website contents. everyday early morning as per schedules IIS application pool is recycle for this CMS application. After restarting the application pool
CMS application takes 20-25 mins to comes up. Now during this time that second application put request of any data update or not. when this application puts request CMS constantly keeps loading HTTP modules and CMS application not comes up. I can't stop that
second application during this time because it will generate outage for me. So that'y during this time period I open the iis manager go to directory security tab and put that server local IP address in Denied access. so only that server can itself open the
website but outside traffic is not allowed. My Requirement : Now i want automate this task. so it will automatically put IP address in denied access and after 25 min it will remove that already entered IP address. I hope this will be more understandable for
you. Once again thank you very much for replying back to me !!
Gaurav03
19 Posts
IP address grant permission and remove the old ip
Jan 17, 2012 05:13 PM|LINK
Hello,
I want to remove the IP address from Directory Security - Grant-list from IIS 6.0 using Vb.Script or c#.net code.I have seen below link to add IP address in Grant-list, but below URL haven't described how to remove the IP address.
Setting IP Security Using ADSI
http://msdn.microsoft.com/en-us/library/ms525526(VS.90).aspx
Setting IP Security Using System.DirectoryServices
http://msdn.microsoft.com/en-us/library/ms524322(v=VS.90).aspx
can someone help on this as soon as possible ?
ADSI adsutil.vbs iis 6.0 ii6 iis 6 6.0 Windows Server 2003 IIS6 scripting
Dalong Zhang...
647 Posts
Microsoft
Re: IP address grant permission and remove the old ip
Jan 19, 2012 07:17 AM|LINK
Hi,
Do you mean you want to deny user access based on IP address? I reviewed the articles you posted above, they are both about adding IP address to "Deny-list" instead of "Grant-list", That's not what you want?
If I misunderstood you, please feel free to let me know.
Feedback to us
Develop and promote your apps in Windows Store
Gaurav03
19 Posts
Re: IP address grant permission and remove the old ip
Jan 19, 2012 08:59 AM|LINK
Dalong Zhang...
647 Posts
Microsoft
Re: IP address grant permission and remove the old ip
Jan 20, 2012 02:04 AM|LINK
Hi,
As far as I know there is no direct way to remove the ip address form deny-list. Howerver you can add the ip address to allow-list, that will solve your problem in a round-about way. Besides using script, It is easy to configure ip restrictions through IIS Manager .
Configure IP Address and Domain Name Restrictions (IIS 6.0)
http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/128d26dd-decb-42f9-8efb-30724d1a2f29.mspx?mfr=true
Hope this helps.
Feedback to us
Develop and promote your apps in Windows Store
Gaurav03
19 Posts
Re: IP address grant permission and remove the old ip
Jan 20, 2012 04:39 AM|LINK
HCamper
8048 Posts
Re: IP address grant permission and remove the old ip
Jan 21, 2012 12:41 AM|LINK
Hi,
This is a "Best Effort" suggestion.
"You can not use the MS Deployer for your tasks.":
At first glance the question is "IP address Grant Permission and Remove the old IP"
maybe the direction is possibly wrong ?
Make a VBscript Script IIS Using "Adsutil.vbs" Information:
http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/d3df4bc9-0954-459a-b5e6-7a8bc462960c.mspx?mfr=true
Command line tools http://msdn.microsoft.com/en-us/library/ms525006
I hope the information helps,
Martin
Community Member Award 2011
Gaurav03
19 Posts
Re: IP address grant permission and remove the old ip
Jan 21, 2012 12:42 PM|LINK
HCamper
8048 Posts
Re: IP address grant permission and remove the old ip
Jan 21, 2012 01:07 PM|LINK
Hi,
For the ""Old IP Address Remove then IP Adddess Grant Permissions":
The task is: Your using a schedule your stopping & restarting during the updates.
Yes more understandable" Wrong Direction" :D.
Regards,
Martin
Community Member Award 2011
HCamper
8048 Posts
Re: IP address grant permission and remove the old ip
Jan 22, 2012 05:56 AM|LINK
Hi,
The task :"IP address Grant Permission and Remove the Old IP Address":
Happy:D. The infomation and replies are helping.
Regards,
Martin
Community Member Award 2011
Gaurav03
19 Posts
Re: IP address grant permission and remove the old ip
Jan 26, 2012 07:05 AM|LINK