Skip to content

How to Block Social Media on a SonicWall Firewall

By Bikram Bhujel

Blocking Facebook, TikTok, Instagram and other social media on an office network is a common firewall request in any office. On a SonicWall there are two ways to do it: App Rules with Application Control, which uses SonicWall's own signatures for social networking apps, or Content Filtering, which blocks whole website categories. I set this up on a SonicWall NSA 2600 running SonicOS 6.5; the menus are slightly different on Gen 7 firewalls, and I note where.

Quick answer

Easiest: if you have a Content Filtering Service license, block the Social Networking category in a CFS profile and apply it to your LAN zone. Without CFS, create a Match Object of type Application List with the SOCIAL-NETWORKING category, then an App Rule of type App Control Content that uses it with the action Reset/Drop. Both need the Gateway Security services that come with the firewall subscription.

Before you start

  • Make sure Application Control and App Rules are enabled globally (in SonicOS 6.5: Firewall > App Rules, tick Enable App Rules).
  • Your security services subscription must be active, otherwise the signatures and categories are out of date.
  • Decide who should be blocked. If some staff need access for work, such as a marketing team, plan an exception group first.

Method 1: Block social media with App Rules

Step 1: Create a Match Object

SonicWall Match Object settings with the SOCIAL-NETWORKING application category selected
  1. Log in to the SonicWall web interface, for example https://192.168.1.1.
  2. Go to Firewall > Match Objects and click Add New Match Object.
  3. Name it, for example Block Social Media.
  4. Set Match Object Type to Application Category List (or Application List if you only want to block specific apps).
  5. Select SOCIAL-NETWORKING and click Add, then OK.

Step 2: Create the App Rule

SonicWall App Rules policy using the Block Social Media match object with the Reset/Drop action
  1. Go to Firewall > App Rules and click Add New Policy.
  2. Name the policy Block Social Media and set Policy Type to App Control Content.
  3. Set Source and Destination to Any, or choose your LAN subnet as the source.
  4. Under Match Object, pick Block Social Media.
  5. Set Action Object to Reset/Drop.
  6. To exclude managers or the marketing team, set Users/Groups Excluded or an excluded address object.
  7. Click OK.

Method 2: Block the Social Networking category with Content Filtering

If your firewall has a CFS license, this is simpler and shows users a proper block page.

  1. Go to Security Services > Content Filter and make sure Content Filtering is enabled for the LAN zone.
  2. Open the CFS policy or profile that applies to your users and edit its Category list.
  3. Tick Social Networking, and any related categories you want, such as Streaming Media.
  4. Save and test from a client PC.

On Gen 7 firewalls (SonicOS 7), the same options live under Object > Match Objects, Policy > Rules and Policies > Security Policy and Profile Objects > Content Filter.

Test it and check it is working

  • Open facebook.com or tiktok.com from a PC behind the firewall. With App Rules, the page fails to load; with CFS, you see the SonicWall block page.
  • Check Investigate > Logs or Log > View for App Control or CFS block entries.
  • Phone apps sometimes keep working on cached connections; restart the app or reconnect to Wi-Fi.

Things that get around it

  • VPN and proxy apps. Block the PROXY-ACCESS and VPN categories in the same way.
  • Mobile data. A firewall cannot block phones that are not on your Wi-Fi.
  • Encrypted DNS and QUIC. Some browsers use QUIC (UDP 443). Blocking UDP 443 outbound forces them back to normal HTTPS, which the firewall can inspect more easily.

For home networks, a DNS filter such as Pi-hole is a cheaper way to block sites; see what I learned setting up Pi-hole. For office networks, putting guests and staff on separate VLANs makes rules like this much easier to manage, as in this office network segmentation project.

Related: moving a flat office network to VLANs, a full Fortinet office migration and DNS blocking with Pi-hole or AdGuard Home. More firewall guides are on the Fortinet and network engineering hub; my network and firewall services cover web filtering policies.

Frequently asked questions

How do I block Facebook on a SonicWall firewall?

Create a Match Object with the SOCIAL-NETWORKING application category, then an App Rule of type App Control Content that uses it with the Reset/Drop action. With a Content Filtering license, you can instead block the Social Networking category in a CFS profile.

Do I need a license to block social media on SonicWall?

Yes. Application Control signatures and Content Filtering categories both come from SonicWall security services, so the subscription must be active for the blocking to work and stay current.

Can I block social media for some users only?

Yes. In the App Rule, use the excluded users, groups or address objects to let certain staff through, or apply a different CFS profile to their group.

Does this work for HTTPS sites?

Application Control and Content Filtering can identify most social media traffic even over HTTPS. For full inspection of encrypted traffic, enable DPI-SSL, which needs a certificate deployed to client PCs.

Why can users still open Instagram on their phones?

They may be on mobile data, using a VPN app, or using a cached connection. Block the VPN and proxy categories as well, and remember the firewall only controls devices on your network.

Comments

Questions and corrections are welcome. I read every comment before it appears, and remove spam and promotional links.