• DrayOS 4, imported, dns_filter, web_content_filter, firewall_filter, app_enforcement, whitelist, quic_block, https_filter, social_networking

Block Social Networking Websites by Web Content Filter (DrayOS4)

1. Add a new WCF profile: Go to CSM >> Web Content Filter Profile,

  1. Make sure the Web Content Filter license is activated.
  2. Click on an available index to add a new profile.
a screenshot of Web Content Filter profile list

2. Configure the WCF profile as follows:

  1. Enter a profile name, here we use Social Network
  2. Set Action to “Block”
  3. Select the DNS over HTTPS (DoH) category for efficient blocking, and the category of websites you would like to block. The category of a website can be checked from https://brightcloud.com/tools/url-ip-lookup.php.
    Here we choose “Social Networking”.
a screenshot of DrayOS Web Content Filter profile

3. To filter the HTTPS websites as well, adding a DNS Filter is required. DNS Filter is an extension of URL Content Filter and Web Content Filter to make sure the HTTPS (encrypted) websites will also be filtered. DNS Filter allows Network Administrator to block or pass the DNS queries that contain specific keywords, thus to control the access to HTTPS websites. Go to CSM >> DNS Filter, and click on a profile index.

a screenshot of DrayOS DNS Filter list

4. Edit the DNS profile as follows,

  1. Enter Profile Name
  2. Select WCF as the Web Content Filter Profile created in Step 2
  3. Click OK to save
a screenshot of DrayOS DNS Filter

5. Add an APP Enforcement Profile to block QUIC. Go to CSM >> APP Enforcement, select a profile index, and choose QUIC. Many websites (such as Google, YouTube, and Facebook) already support HTTP/3, which is based on the QUIC protocol. If you only filter TCP/443 (HTTPS) without blocking QUIC (UDP/443), user browsers (such as Chrome, Edge, and Firefox) may connect via QUIC directly, making the filtering rules ineffective.

Please note that the QUIC protocol can also be blocked by creating an IP Filter for service ports UDP 853, UDP 80, and UDP 443.

6. To apply the Web Content Filter and DNS Filter, go to Firewall >> Filter Setup >> Set 1, and click on a Filter Rule number

  1. Enable the Filter Rule
  2. (Optional) Edit Source IP if you would like to apply this policy to some of the LAN hosts, or you may just leave it as "Any" if you would like to apply the filter rule to all theLAN host.
  3. Select Filter as "Pass Immediately"
  4. Select APP Enforcement as the profile created in Step 5
  5. Select Web Content Filter as the profile created in Step 2
  6. Select DNS Filter as the profile created in Step 3
  7. Click OK to save

7. After finishing the above settings, all the social networking websites will be blocked by Web Content Filter and DNS Filter with Vigor Router, even if the website uses HTTPS.

a screenshot of a browser open facebook but showing this webpage is not available

How to make a social networking website to bypass the rule?

If there's a website you would like to allow access but it belongs to the social networking category, you may add its URL into the White List of Web Content Filter profile. Below we take "www.linkedin.com" for example.  

an illustration of most of socail websites are blocked except for Linkedin

1. Go to Objects Setting >> Keyword Object, create an object and enter the keyword of that website's URL in Contents.

a screenshot of DrayOS Keyword object settings

2. Edit the Web Content Filter profile as follows,

  1. Enable White/Black List
  2. Set Action to "Pass"
  3. Click Edit and select the Keyword Object created in the previous step.
  4. Click OK to save the profile.

3. Now, the LAN clients will be able to visit www.linkedin.com even if it's categorized as a Social Networking website.

a screenshot of DrayOS Web Content filter profile

Troubleshooting

If Web Content Filter does not work as expected, please check the following items:

  • Clear browser's cookie and history.
  • Clear the DNS cache on the computer.
  • Make sure the computer's default gateway is Vigor Router.
  • Check the DNS server of the computer: If the server is an internal DNS server, please make sure the internal DNS server's gateway is set to Vigor Router. If the server is your Vigor Router, please enable DNS Filter Local Setting in CSM >> DNS Filter instead of a Firewall Rule, and please note that DNS Filter Local Setting will apply to all LAN clients who use the router as DNS server.