How to Secure Your ASP.NET Applications on Plesk and Windows Server 2019 Print

  • 0


Ensuring the security of your ASP.NET applications is critical, especially when hosting multiple websites on shared servers. This guide will walk you through the key steps to tighten the security of your ASP.NET applications using Plesk on Windows Server 2019.


  • Windows Server 2019 with Plesk installed
  • Administrator or root access to the server
  • Existing ASP.NET application deployed (you can refer to our previous guide for setting this up)


Step 1: Update Windows and Software

Make sure your Windows Server 2019 and all server software, including Plesk, are updated to their latest versions to benefit from security patches.

Step 2: Use Strong Passwords and Two-Factor Authentication

Ensure that you’re using strong passwords for Plesk and Windows Server. Enable two-factor authentication wherever possible.

Step 3: Configure Firewall Rules

Navigate to the Plesk Control Panel and go to Tools & Settings > Firewall to set up rules that allow only necessary ports and block all others.

Step 4: Enable HTTPS

  1. Navigate to the domain settings in Plesk.
  2. Use the "Let's Encrypt" tool to install an SSL certificate.
  3. Set up HTTPS redirection.

Step 5: Apply ASP.NET Security Best Practices

  • Use parameterized queries to prevent SQL injection.
  • Implement data validation and encoding to protect against cross-site scripting (XSS).
  • Use secure session management.

Step 6: Limit Permissions

Within Plesk, set strict permissions for the application pool identity that your ASP.NET application runs under.

Step 7: Install Web Application Firewall (WAF)

Consider installing a WAF such as ModSecurity that is compatible with Plesk and configure it according to your needs.

Step 8: Secure Connection Strings and Sensitive Data

Use encryption or environment variables to secure database connection strings and other sensitive data.

Step 9: Regularly Monitor Logs

Keep an eye on server logs for any suspicious activity. Plesk offers log management tools that can help in this regard.

Step 10: Regular Backups

Ensure that you are running regular backups of your application and database. You can automate backups through Plesk's backup manager.


Securing your ASP.NET applications on Windows Server 2019 with Plesk is a continuous process. Always stay updated with the latest security practices and keep your server and applications updated.

Further Resources

For additional technical details and support, you can refer to our knowledge base at or submit a ticket for more personalized assistance at

Was this answer helpful?

« Back