How To Block Gmail In Sophos Xg Firewall

If you are interested in improving your network security or wish to restrict the usage of Gmail in your company, Sophos XG Firewall has an effective solution. With the help of the web filter function of Sophos XG Firewall, you can easily block access to Gmail. Here is a detailed tutorial on how to accomplish this.

Step 1: Start Sophos XG Firewall

Launch the Sophos XG Firewall interface on your system. Ensure that your firewall is up to date with the latest software patches to prevent any security breaches or system malfunctions.

Step 2: Create an Application Filter Policy

In the Sophos XG Firewall interface, navigate to Protect > Web > Application Filter.

Click on Add to create a new application filter policy. A dialog box will appear where you can enter the details of the new policy.

Name the policy, for example, “Block Gmail”. In the Category section, select Email from the dropdown list.

Step 3: Configure the Application Filter Policy

After creating the policy, it’s time to configure it. In the Applications section, search for ‘gmail’.

Check the box next to Gmail and then set the action to Block. This will prevent any traffic related to Gmail from passing through the firewall.

Step 4: Apply the Application Filter Policy

Once the application filter policy is configured, it needs to be applied to the firewall rules.

Navigate to Protect > Firewall and then select the existing firewall rule to which you want to apply the “Block Gmail” policy. Click on Edit.

In the Application Policy section, select the “Block Gmail” policy from the dropdown list. Click on Apply to save the changes.

Step 5: Test the Firewall Policy

To ensure that the policy is working as expected, you can run a test by trying to access Gmail. If the policy is applied successfully, you should not be able to access Gmail.


While this blog is meant to be a guide, it’s important to note that blocking access to email services like Gmail can impact the communication within your organization. Therefore, consider the potential impacts before implementing such policies.


Sophos XG Firewall is a potent tool when it comes to managing and controlling internet traffic. With the right configuration, you can efficiently block access to specific online services like Gmail, enhancing security and productivity within your organization.