Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Show "Down for Maintenance" page?Show "Down for Maintenance" page?
Previous
 
Next
New Post
12/9/2006 2:44 AM
 
Scott:

As you may know, IIS lets you define access restrictions based on IP address. This feature is only available on a true server, not Win2K Pro or Win XP by the way. You can navigate to the Properties of the site you need to work on, "Directory Security" tab, and then edit the "IP address and domain name restrictions". But this is kind of a pain if you do it frequently, I would script it. Something like a pair of scripts called "RestricON" and "RestricOFF".

I did a quick Google search and found a useful script to do this here: http://www.iisfaq.com/Default.aspx?tabid=2804. That is not exactly what you are looking for but can be easily adjusted to just allow 127.0.0.1 (localhost, or whatever address you want to specify) to access the site for maintenance and then remove the restriction (via another script possibly) when done.

Another alternative is to remove the alias for the external address to the site and just leave localhost. This can also be scripted, either directly to the database table or via a simple module for Administrators only. Related to the alias, you could also play with the Host Header definition in IIS to disable the one the regular users use to connect to the site.

And I have to give you the standard disclaimer, I have not tested the script above or the other suggestions for this purpose, use at your own risk. The alternative you use will also depend of the level of access you have to the server. I may actually work on this later, it sounds like a useful thing to have.

Carlos
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Show "Down for Maintenance" page?Show "Down for Maintenance" page?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out