Search Results for security

Redirect HTTP to HTTPS

...<httpRedirect enabled="false" destination="https://example.com" httpResponseStatus="Permanent" /> Don’t forget to enable HTTP Strict-Transport-Security (HSTS) on IIS. HSTS improves security and prevents man-in-the-middle attacks, downgrade attacks, and cookie-hijacking. And there are a number...

Disk Cleanup in Windows Server

Analyze Component Store size with DISM in PowerShell

...with DISM /Online /Cleanup-Image, PowerShell Install-WindowsFeature and SFC /scannow Some reports are available explaining Microsoft Security Bulletin MS14-046 broke DISM /Online /Cleanup-Image /RestoreHealth, PowerShell Install-WindowsFeature with -Source parameter, and SFC...

Send email with PowerShell

PowerShell 5.0 logo

Easily send your DevOps reporting by email with this PowerShell function, because the Send-MailMessage cmdlet is obsolete. Of course you’ll be using StartTLS and authenticated SMTP as additional security. If...

My WordPress web.config

brown wooden blocks on white surface

...www.saotn.org/web-applications/filter-web-traffic-with-blacklists/ @ www.saotn.org/windows-server/iis-10-ftp-ip-security-allowlist/ --> <location path="wp-login.php"> <system.webServer> <security> <!-- this line blocks all IP addresses, except those listed below --> <ipSecurity allowUnlisted="false"> <add ipAddress="203.0.113.15" allowed="true" /> <add ipAddress="203.0.113.16" allowed="true" />...

MySQL Connector/NET 6.5 in partial trust

Microsoft Internet Information Services (IIS) logo

...trust To prevent Security Exceptions, this SecurityClass and IPermission must be configured in the web_mediumtrust.config file. Open the file (C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web_mediumtrust.config) and add: <securityclass Name="MySqlClientPermission" Description="MySql.Data.MySqlClient.MySqlClientPermission, MySql.Data, Version=6.5.4.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />...

Install OpenSSH in Windows Server

OpenSSH SSH Server Properties in Windows Server

...-LocalPort 22 ` -Program "C:\Windows\System32\OpenSSH\sshd.exe" Replace C:\Windows\System32\OpenSSH\sshd.exe with the actual path to the sshd.exe (C:\OpenSSH\sshd.exe, if you followed these instructions). Or go to Control Panel > System and Security >...