Stop Malware! Here’s How to Blacklist & Whitelist in Windows 11

Method 2: Using the Group Policy Editor (for Pro/Enterprise)

This feature is only available for Windows 11 Pro and Enterprise. If you’re using the Home version, see the alternatives at the end of the article.

Step 1: Open the Group Policy Editor

  1. Press Win + R (Windows key + R together)
  2. Type gpedit.msc and press Enter.

Step 2: Getting to AppLocker

Navigate through the following paths like a digital adventure:

Computer Configuration → Windows Settings → Security Settings → Application Control Policies → AppLocker

Step 3: Create a Rule to Block the Program

  1. Within the AppLocker folder, select the type of rule you want to create, for example:
    • Executable Rules → for .exe files (main programs)
    • Windows Installer Rules → for .msi file (installer)
    • Script Rules → for .vbs, .ps1, etc. files
  2. Right-click on that rule type, and then select Create New Rule.
  3. Follow the wizard that appears, then select:
    • Deny (not Allow) as an Action
    • Specify the users or user groups that will be subject to the rule.
    • Enter the file path of the program you want to block manually, for example: C:\Program Files\UnwantedApplications\app.exe
  4. Click Next until you’re done, then click Create.
Create New Rule Deny

Step 4: Fine-Tuning Rules (Expert Tips!)

In the rule creation window, take advantage of these advanced features:

  • Publisher Condition: Block/allow based on digital certificates (more secure!)
  • Path Condition: Block entire folders (e.g., C:\Games\)
  • File Hash: Block certain versions of the program, even if the name is changed

Example:

Additional Steps: Run the “Application Identity” Service

For AppLocker rules to be active, you must make sure the following services are running:

  1. Press Win + R, type services.msc, and then press Enter.
  2. Look for a service named Application Identity.
  3. Right-click and select Start.

Without running this service, AppLocker rules will not work.

How to Whitelist Programs in Windows 11

If you want to make sure that only certain programs are allowed to run on Windows 11-based computers, such as at work, school, or public computers, then the best solution is to whitelist your apps. One of the safest and most efficient ways to do this is to take advantage of the Software Restriction Policy (SRP) feature available in the Windows 11 Pro and Enterprise editions.

Step 1: Go to Local Security Policy

  1. Press the Win + R button to open the Run window.
  2. Type the following command: secpol.msc and then press Enter. Then a window will open the Local Security Policy.

Step 2: Access Software Restriction Policies

  1. In the left panel, navigate to:
Security Settings → Software Restriction Policies
  1. If you don’t already have a policy, right-click on Software Restriction Policies, then select New Software Restriction Policies.

Once the policy is active, you’ll see new folders like “Security Levels” and “Additional Rules.”

Local Security Policy Software Restriction Policies

Step 3: Create Additional Rules to Allow Specific Apps

  1. Click on the Additional Rules folder.
  2. Right-click → select New Path Rule or New Certificate Rule.
  3. Enter the file path or folder location of the program you want to allow. For example:
C:\Program Files\OfficialApplication\
  1. In the Security Level section, select Unrestricted for the program to run.
  2. Click OK to save the rule.

This rule will allow only the apps that are in that path to run, while others will be automatically blocked.

Latest Articles