Search Results for security

Convert .htaccess to web.config

Microsoft Internet Information Services (IIS) logo

...value --> <add name="Cache-Control" value="max-age=691200" /> </customHeaders> </httpProtocol> </system.webServer> </configuration> Also read: Learn how to set an HSTS HTTP Strict-Transport-Security header Remove Server response header in IIS One-time donation Your...

MySQL Connector/NET and Entity Framework

Microsoft Internet Information Services (IIS) logo

...generated connection string <add name="modelEntities" connectionString="metadata=res://*/Model.csdl|res://*/Model.ssdl|res://*/Model.msl; provider=MySql.Data.MySqlClient; provider connection string="server=mysql.server.ext; User Id=mysqluser; Persist Security Info=True; database=mysqldb; password=mysqlpwd"" providerName="System.Data.EntityClient" /> Correct connection string <add name="modelEntities" connectionString="metadata=res://*/Model.csdl|res://*/Model.ssdl|res://*/Model.msl; provider=MySql.Data.MySqlClient; provider connection string='server=mysql.server.ext; User...

Disable ECDH public server param reuse in Windows Server IIS

Successfully set ECDH public server param reuse to no

...to in Windows Registry editor Using PowerShell: if(!(Test-Path "hklm:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\KeyExchangeAlgorithms\ECDH")) { New-Item "hklm:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\KeyExchangeAlgorithms" -name "ECDH" } New-ItemProperty "hklm:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\KeyExchangeAlgorithms\ECDH" -Name EphemKeyReuseTime -Value -PropertyType DWord While you are at it, add your own...

HackRepair.com’s Bad Bots .htaccess in web.config for IIS

Microsoft Internet Information Services (IIS) logo

...Link\ Scout|zibber-v|zimeno|Zing-BottaBot|ZipppBot|zmeu|ZoomSpider|ZuiBot|ZumBot|Zyborg|Zyte).*quot; /> </conditions> <action type="CustomResponse" statusCode="403" statusReason="Forbidden" statusDescription="Forbidden" /> </rule> </rules> </rewrite> <security> <!-- To block IP addresses, see example format below. Add to list as needed: --> <ipSecurity>...