How to Manage ConfigServer Security & Firewall (CSF) Profiles

In this article:

It behooves managed VPS with cPanel (or unmanaged VPS) and Dedicated server administrators to understand backup options available within WebHost Manager (WHM): cPanel, website, database, WHM-scheduled backups, and Softaculous backups. There’s also Snapshots in your Account Management Panel (AMP). If you’re auditing logs for how well your security has improved throughout a duration of time, you may want to compare your current ConfigServer Security & Firewall (CSF) configurations.

If you have Advanced Policy Firewall (APF), upgrade to CSF today.

CSF has seven (7) preconfigured configuration files, called profiles, available for usage and comparison.

Below we’ll cover how to backup, restore, and compare CSF profiles.


CSF creates backups automatically during upgrades. But if you want to backup your current configuration before trying some new settings, it’s helpful to create a backup beforehand.

  1. Log in to WHM.
  2. Select ConfigServer Security & Firewall on the left.
  3. Select Firewall Profiles.
  4. Under Backup csf.conf, click Create Backup.
  5. When the backup completes, you’ll see the backup file name and path. Click Return to exit.

Restore a Profile

You can easily restore an older csf.conf file after any testing within the same section.

  1. From the CSF page, select Firewall Profiles.
  2. Under Restore Backup Of csf.conf, select a backup to restore.
  3. Click Restore Backup.
Backup and Restore CSF Profiles

Compare Configurations

If you’ve been working on server hardening for a while, but this is the first time you’ve seen these features, you can compare your current configuration to other preconfigured profiles – e.g. protection_medium and protection_high.

  1. From the CSF page, select Firewall Profiles.
  2. Under Compare Configurations, select two configurations to compare. Your current configuration is the second configuration by default.
  3. Click Compare Config/Backup/Profile Settings.
  4. The next page will show three columns – setting name and each configuration.
Compare CSF Configurations

Enhance your VPS security with another CSF monitoring feature – checking for open ports. Need help? Contact our Managed Hosting team today.

InMotion Hosting Contributor
InMotion Hosting Contributor Content Writer

InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!

More Articles by InMotion Hosting

Was this article helpful? Let us know!