国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

? ?? IIS IIS API? ???? IP ???? ?????? ??

IIS API? ???? IP ???? ?????? ??

Dec 18, 2020 pm 05:47 PM
api iis

IIS Installation? ????? IIS API? ???? IP ???? ?????? ??? ?????.

IIS API? ???? IP ???? ?????? ??

?? ?? ??: IIS Installation

? ???? Microsoft.Web.Administration? ???? ???. code> ??? ???:
PS: Microsoft.Web.Administration? Nuget? ?? ???? ??? ? ????. Microsoft.Web.Administration 寫的一個簡單封裝:
PS: Microsoft.Web.Administration 可通過 Nuget 搜索安裝。

public?class?IISAdministration
{
????private?readonly?ServerManager?serverManager;
????public?IISAdministration()
????{
????????serverManager?=?new?ServerManager();
????}

????public?IEnumerable<WorkerProcess>?GetWorkerProcesses()
????{
????????return?serverManager.WorkerProcesses;
????}

????public?IEnumerable<string>?GetSiteNames()
????{
????????foreach?(var?item?in?GetWorkerProcesses())
????????{
????????????yield?return?item.AppPoolName;
????????}
????}

????public?ConfigurationElementCollection?GetIpSecurityCollection(string?site)
????{
????????return?GetConfigurationElementCollection("system.webServer/security/ipSecurity",?site);
????}

????public?ConfigurationElementCollection?GetConfigurationElementCollection(string?sectionName,?string?site?=?"")
????{
????????var?config?=?serverManager.GetApplicationHostConfiguration();
????????ConfigurationSection?section;
????????if?(string.IsNullOrWhiteSpace(site))
????????{
????????????section?=?config.GetSection(sectionName);
????????}
????????else
????????{
????????????section?=?config.GetSection(sectionName,?site);
????????}
????????return?section.GetCollection();
????}

????public?void?CreateElement(ConfigurationElementCollection?section,?ConfigurationElement?element)
????{
????????section.Add(element);
????????serverManager.CommitChanges();
????}

????public?void?RemoveElement(ConfigurationElementCollection?section,?ConfigurationElement?element)
????{
????????section.Remove(element);
????????serverManager.CommitChanges();
????}

????public?bool?HasBlocked(string?siteName,?string?ip)
????{
????????var?ipSecurityCollection?=?this.GetIpSecurityCollection(siteName);
????????for?(int?i?=?0;?i?<?ipSecurityCollection.Count;?i++)
????????{
????????????var?element?=?ipSecurityCollection[i];
????????????if?((string)element["ipAddress"]?==?ip)
????????????{
????????????????return?true;
????????????}
????????}
????????return?false;
????}

????public?void?FreeIP(string?siteName,?string?ip)
????{
????????if?(!HasBlocked(siteName,?ip))
????????{
????????????return;
????????}
????????var?ipSecurityCollection?=?this.GetIpSecurityCollection(siteName);
????????for?(int?i?=?0;?i?<?ipSecurityCollection.Count;?i++)
????????{
????????????var?element?=?ipSecurityCollection[i];
????????????if?((string)element["ipAddress"]?==?ip)
????????????{
????????????????this.RemoveElement(ipSecurityCollection,?element);
????????????????break;
????????????}
????????}
????}

????public?void?BlockIP(string?siteName,?string?ip)
????{
????????if?(HasBlocked(siteName,?ip))
????????{
????????????return;
????????}
????????var?ipSecurityCollection?=?this.GetIpSecurityCollection(siteName);
????????var?element?=?ipSecurityCollection.CreateElement("add");
????????element["ipAddress"]?=?ip;
????????element["allowed"]?=?false;

????????ipSecurityCollection.Add(element);
????????serverManager.CommitChanges();
????}
}

使用方法:

var?iisAdministration?=?new?IISAdministration();
iisAdministration.BlockIP("",?"192.0.0.1");

注意:

  1. BlockIP第一個參數(shù)為站點名,如果空字符串,則直接添加到 IISrrreee
  2. ???:
  3. rrreee
  4. ??:
    ??BlockIP? ?? ????? ??? ?????. ? ???? ?? IIS ?? ?? ?? IP ??. ????? ??? ??? ????? ????? ??? ??? ?????. ????

? ??? IIS API? ???? IP ???? ?????? ??? ?? ?????. ??? ??? PHP ??? ????? ?? ?? ??? ?????!

? ????? ??
? ?? ??? ????? ???? ??? ??????, ???? ?????? ????. ? ???? ?? ???? ?? ??? ?? ????. ???? ??? ???? ???? ??? ?? admin@php.cn?? ?????.

? AI ??

Undresser.AI Undress

Undresser.AI Undress

???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover

AI Clothes Remover

???? ?? ???? ??? AI ?????.

Video Face Swap

Video Face Swap

??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

???

??? ??

???++7.3.1

???++7.3.1

???? ?? ?? ?? ???

SublimeText3 ??? ??

SublimeText3 ??? ??

??? ??, ???? ?? ????.

???? 13.0.1 ???

???? 13.0.1 ???

??? PHP ?? ?? ??

???? CS6

???? CS6

??? ? ?? ??

SublimeText3 Mac ??

SublimeText3 Mac ??

? ??? ?? ?? ?????(SublimeText3)

???

??? ??

??? ????
1601
29
PHP ????
1502
276
???
XML ??? ?? ?? XML ??? ?? ?? Apr 02, 2025 pm 09:00 PM

???? ??? ???? ???? XML ???????. ?? ??? ? ?? ?????? ??? ?? Oxygen XML ??? ?? XMLSPy? ?? XML ???? ??? ? ????. ?????? XML ???? ???? ?? ????? ?? (? : Python) ? XML ???? (? : XML.etree.elementtree)? ???? ?? ???????.

IIS : Microsoft ? ?? ?? IIS : Microsoft ? ?? ?? May 07, 2025 am 12:03 AM

IIS? Microsoft? ? ??? ? ?? ????? ????? ?? ?? ? ? ?? ????????. 1. Windows?? "?? ? ?? ??"???? ?? IIS? ??? ? ????. 2. PowerShell ????? ?? ? ??? ??? ?? ? ? ????. 3. Web.config ??? ?? URL ? ??? ???? ?? ? SEO? ?? ? ? ????. 4. IIS ??, ?? ?? ? ?? ????? ???? ???? ?? ? ? ????. 5. ??, ?? ?? ??? ???? ????? IIS ??? ??? ? ? ????.

?? ??? ????? ?? ???? ?? ?? ??? ????? ?? ???? ?? Apr 07, 2025 pm 01:51 PM

Bootstrap? ????? ?? ????? ??? ???? ?????. ????? ? ???? ?? ??? ????? ?? ????? ?? ?? (?? ??) ??? ?? ??? (?? ??)

IIS : ?? ??? ??? ??????? IIS : ?? ??? ??? ??????? May 03, 2025 am 12:15 AM

IIS? ??? ?? ???? ???, ?? ?, ?? ? ??? ?? ??? ?????. 1) ?? ?? ???? ?? ? ?? ? ??? ?? ??? ? ?? ? IIS? ?? ??? ????? ????? ?? ? ? ????. 2) Security? ? ??? ??? ?????? SSL/TLS ?? ? URL ?? ?? ??? ?????. 3) ?????? ?? ?? ?? ????? ???? ?? ???? ?????. 4) ?? ? ????? iismanager ? PowerShell ????? ?? ?? ??? ??????.

YII ??? ?? ? ?????? YII ??? ?? ?? ??? ?? ???? YII ??? ?? ? ?????? YII ??? ?? ?? ??? ?? ???? Apr 18, 2025 pm 10:57 PM

?? ?? : YII ??? ??? ???? ?? ??? ? ??????? ?????? ????? ??? PHP ??? ?????. ???, ??? ???? ?? ???? ?????. ? ??? YII ??? ??? ?? ??? ? ???? ???? ???? ??, ?? ???? ??? ????? ?? ?? ????. ? ???? ???? ?? ? ???? YII? ?? ???? ??? ? ?? ?? ?? ??? ? ???? ?? ? ? ??? ???????.

IIS ?? : ? ??? ? ? ?????? ??? IIS ?? : ? ??? ? ? ?????? ??? May 10, 2025 am 12:24 AM

IIS? Microsoft? ? ??? ? ? ??????? ????? ???? ?? ?? ? ? ?? ????????. 1) IIS ?? : ??? ?? ?? ???? ?? Windows ??? ??????. 2) ? ??? ??? : ? ? ???? ?? PowerShell ??? ???? ? ? ???? ????. 3) ?????? ? ?? : ?? ? ???? ????? ?? ?? ? ???? ?? ??? ? ?? ??? ??????. 4) ?? ??? : ?????? ? ??? ???? ??? ??? ????? ? ??? ??? ??????. 5) ?? ??? : IIS ?? ??? ??? ???? ??? ???? ?????.

IIS ? PHP : ??? ?? IIS ? PHP : ??? ?? Apr 18, 2025 am 12:11 AM

IIS? PHP? ???? FastCGI ??? ?? ?????. 1. IIS? FASTCGI ??? ?? PHP? ???? PHP? ??? ? ????? ?????. 2. PHP? ????? IIS ????? ?? ???? ???? ???????. 3. ?? ???? FASTCGI ?? ??? ? PHP ??? ??? ?????. 4. ?? ???? PHP ?? ?? ? ?? ?? ??? ?? ? ? ????. 5. ???? ???? ?? ? ??? ? ?? ??? ???? ??? ?? ?? ? ? ????. 6. PHP ???? ? ??? ???? OPCache? ?????? ?? ???? ?????.

IIS ? ? ??? : ??? ? ??? IIS ? ? ??? : ??? ? ??? May 05, 2025 am 12:12 AM

IIS? Windows?? ? ???? ??????? Microsoft? ? ?? ????????. WebHosting? ???? ?? ??? ? ? ??? ??? ? ??? ??? ???? ????. 1) IIS? ???? ?? ?? ? ?????? ?????. 2) ? ??? ???? ???, ???, ?? ?? ? ???? ? ??? ?????. 3) ?? ???? ??? ? ???? ???? ?? ???? ???? ?? ? ???? ???? ???? ???? ???? ?? ?? ?????.

See all articles